/* Base styles */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    --primary-color: #333333;
    --secondary-color: #666666;
    --text-color: #444444;
    --background-color: #f5f5f5;
    --border-color: #dddddd;
    --hover-color: #555555;
    --active-color: #222222;
    --focus-color: #444444;
    --success-color: #4a4a4a;
    --success-hover-color: #3a3a3a;
    --success-active-color: #2a2a2a;
    --danger-color: #707070;
    --danger-hover-color: #606060;
    --danger-active-color: #505050;
    --light-grey: #eeeeee;
    --disabled-color: #999999;
    --disabled-text-color: #cccccc;
}

/* Material Icons Styles */
.nav-link .material-icons {
    vertical-align: middle;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Base button styles - consolidate all button styles here */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.25);
}

.btn:disabled {
    background-color: var(--disabled-color);
    color: var(--disabled-text-color);
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary Button States */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-1px);
}

.btn-primary:active {
    background-color: var(--active-color);
    transform: translateY(1px);
}

.btn-primary:focus {
    background-color: var(--focus-color);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.25);
}

/* Success Button States */
.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--success-hover-color);
    transform: translateY(-1px);
}

.btn-success:active {
    background-color: var(--success-active-color);
    transform: translateY(1px);
}

.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.25);
}

/* Danger Button States */
.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover-color);
    transform: translateY(-1px);
}

.btn-danger:active {
    background-color: var(--danger-active-color);
    transform: translateY(1px);
}

.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(112, 112, 112, 0.25);
}

/* Small Button Variation */
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Loading State */
.btn.loading {
    cursor: wait;
    opacity: 0.8;
}

.btn.loading:hover {
    transform: none;
}

/* Body Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
}

.navbar-brand .material-icons {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--hover-color) !important;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn .material-icons {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--hover-color);
}

.btn-primary:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--hover-color);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--hover-color);
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 500;
}

/* Form Styles */
.form-control {
    border-color: var(--border-color);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 102, 102, 0.25);
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.upload-area:hover {
    border-color: var(--hover-color);
    background-color: var(--light-grey);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: var(--light-grey);
}

/* Progress Bar Styles */
.progress {
    height: 0.75rem;
    background-color: var(--light-grey);
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

/* Alert Styles */
.alert {
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #f8f8f8;
    border-color: #e0e0e0;
    color: var(--danger-color);
}

.alert-info {
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    color: var(--primary-color);
}

/* Table Styles */
.table {
    background: white;
}

.table thead th {
    background-color: var(--light-grey);
    color: var(--primary-color);
    font-weight: 500;
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-grey);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Preview Content Styles */
.preview-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.preview-content h1,
.preview-content h2,
.preview-content h3 {
    color: var(--primary-color);
}

/* Responsive Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
}

/* Container Responsive Styles */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

/* Card Styles */
.card {
    margin: 2rem auto;
    padding: 2.5rem;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table Responsive Styles */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Card Title Style */
.card-title {
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Document Summary Styles */
.preview-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
    font-family: var(--font-family);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.preview-content h1 {
    font-family: var(--font-family);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.preview-content h2 {
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 1.25rem 0 0.75rem;
}

.preview-content h3 {
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
}

.preview-content p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: left;
    font-family: var(--font-family);
}

.preview-content ul,
.preview-content ol {
    margin: 0 0 1rem 1.5rem;
    padding-left: 1rem;
    font-family: var(--font-family);
    color: var(--text-color);
}

.preview-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-family: var(--font-family);
    color: var(--text-color);
    font-size: 1rem;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.upload-area.dragover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.2);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--hover-color);
}

.btn-primary:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
}

/* Progress Bar Styles */
.progress {
    height: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

/* Spinner Styles */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Authentication Styles */
.auth-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form h1 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

.form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auth-form button {
    width: 100%;
    padding: 0.8rem;
    margin: 1.5rem 0;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-form button:hover {
    background: #444;
}

.auth-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-links span {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.auth-links a {
    color: #0066cc;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--font-family);
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}

.status-text {
    color: #17a2b8;
}

/* Admin Panel Styles */
.admin-panel {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: #2c3e50;
}

.user-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--hover-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--hover-color);
}

/* Preview Content Styles */
.preview-content h1,
.preview-content h2,
.preview-content h3 {
    color: var(--primary-color);
    margin-top: 1rem;
    font-family: var(--font-family);
}

.preview-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: left;
}

.preview-content ul,
.preview-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    font-family: var(--font-family);
    color: var(--text-color);
}

.preview-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-family: var(--font-family);
    color: var(--text-color);
    font-size: 1rem;
}

.preview-content code {
    background-color: #f1f3f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Roboto Mono', monospace;
    color: #2c3e50;
}

.preview-content pre {
    background-color: #f1f3f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #dee2e6;
}

/* Document List Styles */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.document-item .material-icons {
    margin-right: 0.75rem;
}

.document-item .filename {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.document-item:hover .document-actions {
    opacity: 1;
}

/* Table Styles */
.table td.text-end {
    text-align: right;
}

.table th.text-end {
    text-align: right;
}

/* Ensure buttons in the actions column stay together */
.text-end .btn {
    margin-left: 0.5rem;
}

.text-end .btn:first-child {
    margin-left: 0;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* Navbar Styles */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-custom .nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: var(--text-color) !important;
    margin-left: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

.navbar-custom .navbar-toggler {
    border-color: var(--border-color);
}

.navbar-custom .material-icons {
    vertical-align: middle;
    margin-right: 0.3rem;
    font-size: 1.25rem;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--hover-color);
    color: white;
}

/* Register Button Styles */
.nav-link.btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-link.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.nav-link.btn .material-icons {
    margin-right: 0.3rem;
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-custom .nav-link {
        margin-left: 0.5rem;
    }

    .navbar-custom .nav-link.btn {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Additional Enhancements */

/* Active Link Styles */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Smooth Scrolling for Navbar */
html {
    scroll-behavior: smooth;
}

/* Add these table-specific styles */
.table {
    margin-bottom: 0;
}

.table th {
    white-space: nowrap;
    padding: 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Button group styling */
.btn-group {
    display: inline-flex;
    gap: 0.25rem;
}

.btn-group .btn {
    padding: 0.375rem;
    line-height: 1;
}

.btn-group .material-icons {
    font-size: 1.25rem;
    margin: 0;
}

/* Card improvements */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 1.5rem;
}

/* Create button improvements */
.mb-4 .btn-primary {
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
}

/* Column layouts */
.date-column {
    width: 180px;
    white-space: nowrap;
}

.actions-column {
    width: 100px;
    text-align: right;
}

/* Document list styling */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.document-item:hover {
    background-color: #f0f1f2;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0; /* Enables text truncation */
}

.document-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    opacity: 0.7;
}

.document-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.document-item:hover .document-actions {
    opacity: 1;
}

/* Icon button styling */
.btn-icon {
    padding: 0.375rem;
    line-height: 1;
    border-radius: 4px;
    background: transparent;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-icon .material-icons {
    font-size: 1.25rem;
}

/* Table header styling */
.table thead th {
    background-color: #f8f9fa;
    font-weight: 500;
    padding: 1rem;
    border-bottom: 2px solid #dee2e6;
}

/* Card styling */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: none;
}

/* Date display styling */
.date-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-human {
    font-weight: 500;
}

.date-full {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Create button alignment fix */
.create-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.create-btn .material-icons {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.create-btn .btn-text {
    line-height: 1;
    position: relative;
    top: 1px; /* Fine-tune vertical alignment if needed */
}

/* Create button alignment */
.create-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.create-btn .material-icons {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.create-btn .btn-text {
    line-height: 1;
    position: relative;
    top: 1px;
}

/* Table improvements */
.table thead th {
    background-color: #f8f9fa;
    font-weight: 500;
    padding: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Action buttons */
.btn-group {
    display: inline-flex;
    gap: 0.25rem;
}

.btn-group .btn {
    padding: 0.375rem;
    line-height: 1;
}

.btn-group .material-icons {
    font-size: 1.25rem;
    margin: 0;
}

/* Badge styling */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Date display */
.date-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-human {
    font-weight: 500;
}

.date-full {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Card improvements */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.card-body {
    padding: 1.5rem;
}

/* Material Icons base styles */
.material-icons {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Button sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Button groups */
.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-group .btn {
    padding: 0.375rem;
}

.btn-group .material-icons {
    margin: 0;
}

/* Create button specific styles */
.create-btn {
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

/* Document item styles */
.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.document-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* Modal styles */
.modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal footer button styles */
.modal-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    height: 38px;
}

.modal-footer .btn .material-icons {
    font-size: 20px;
    margin-right: 0.5rem;
}

/* Secondary button styles for modals */
.btn-secondary {
    background-color: var(--light-grey);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.btn-secondary:active {
    background-color: #d0d0d0;
}

.notice-box {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.notice-box.error {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.notice-box.success {
    border-left-color: #28a745;
    background-color: #f4fff6;
}

.notice-box p {
    margin: 0;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}
