/* ============================================
   UVA Record Room Management System
   Main Stylesheet
   ============================================ */

:root {
    --bg: #f3f7f5;
    --bg-soft: #eaf2ef;
    --surface: #ffffff;
    --surface-muted: #f8fbfa;
    --text: #17262b;
    --text-soft: #53686c;
    --muted: #7a8c90;
    --border: #dbe7e3;
    --border-strong: #c4d6d0;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #d9f2ec;
    --accent: #d97706;
    --accent-soft: #fff3d6;
    --success: #15803d;
    --success-soft: #dcfce7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --radius: 8px;
    --shadow: 0 16px 40px rgba(20, 49, 58, 0.08);
    --shadow-sm: 0 8px 20px rgba(20, 49, 58, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f9fbfa 0, var(--bg-soft) 360px, var(--bg) 360px);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

small {
    color: var(--muted);
}

.container {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 28px 24px 36px;
}

.page-title {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 750;
    line-height: 1.2;
}

.page-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: #14313a;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 36px rgba(20, 49, 58, 0.22);
}

.header-content {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.2;
}

.logo::before {
    content: "RR";
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: #f2b84b;
    color: #14313a;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: inset 0 -2px 0 rgba(20, 49, 58, 0.16);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    flex-wrap: wrap;
}

.user-greeting strong {
    color: #ffffff;
}

.user-separator {
    color: rgba(255, 255, 255, 0.32);
}

.logout-link {
    color: #ffffff;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.logout-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(20, 49, 58, 0.07);
    backdrop-filter: blur(10px);
}

.nav-menu ul {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 10px 24px;
    list-style: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-soft);
    font-weight: 650;
    font-size: 0.94rem;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu a:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.nav-menu .active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.stat-card:nth-child(2)::before {
    background: var(--accent);
}

.stat-card:nth-child(3)::before {
    background: var(--info);
}

.stat-card:nth-child(4)::before {
    background: var(--success);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 1.85rem;
}

.stat-card h3 {
    color: var(--text);
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 800;
}

.stat-card p {
    color: var(--text-soft);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.stat-link {
    color: var(--primary);
    font-weight: 750;
    font-size: 0.92rem;
}

.stat-link:hover {
    color: var(--primary-dark);
}

/* ============================================
   CARDS & PANELS
   ============================================ */
.card,
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card {
    padding: 24px;
    margin-bottom: 22px;
}

.filter-bar {
    padding: 20px;
    margin-bottom: 18px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.container > .card-header {
    padding: 18px 20px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.card > .card-header {
    margin-top: -2px;
}

.card-header h2,
.card-header h3 {
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 750;
}

.report-section {
    margin-bottom: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: var(--surface-muted);
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.stat-box h4 {
    color: var(--primary);
    font-size: 1.7rem;
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin: 0;
}

.chart-container {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   FORMS
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.filter-bar .form-row {
    margin-bottom: 0;
    align-items: end;
}

.filter-bar .form-group[style*="display"] {
    gap: 10px;
    flex-wrap: wrap;
}

.filter-bar .form-group[style*="display"] .btn {
    margin-left: 0 !important;
}

.form-group {
    margin-bottom: 18px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.form-group label.required::after {
    content: " *";
    color: var(--danger);
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--text);
    font-size: 0.98rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.form-control:disabled {
    background: #eef4f2;
    color: var(--muted);
    cursor: not-allowed;
}

.form-control::placeholder {
    color: #9aa9ac;
}

textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
.btn-login {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.2;
    font-weight: 750;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn:hover,
.btn-login:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-login {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.btn-primary:hover,
.btn-login:hover {
    color: #ffffff;
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(21, 128, 61, 0.16);
}

.btn-success:hover {
    color: #ffffff;
    background: #166534;
}

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

.btn-danger:hover {
    color: #ffffff;
    background: #b91c1c;
}

.btn-warning {
    background: var(--warning);
    color: #ffffff;
}

.btn-warning:hover {
    color: #ffffff;
    background: #92400e;
}

.btn-info {
    background: var(--info);
    color: #ffffff;
}

.btn-info:hover {
    color: #ffffff;
    background: #1d4ed8;
}

.btn-secondary {
    background: #eef4f2;
    color: var(--text);
    border-color: var(--border-strong);
}

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

.btn-sm {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.84rem;
}

.btn:disabled,
.btn-login:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
}

.data-table thead {
    background: #14313a;
    color: #ffffff;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 750;
    font-size: 0.86rem;
    white-space: nowrap;
}

.data-table th a {
    color: #ffffff;
    display: block;
}

.data-table th a:hover {
    color: #f2b84b;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    vertical-align: middle;
}

.data-table td strong {
    color: var(--text);
}

.data-table tbody tr:nth-child(even) {
    background: #fbfdfc;
}

.data-table tbody tr:hover {
    background: #edf8f4;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table .actions,
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--text-soft);
    text-align: center;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-active,
.badge-success {
    background: var(--success-soft);
    color: #14532d;
    border-color: #bbf7d0;
}

.badge-inactive,
.badge-danger {
    background: var(--danger-soft);
    color: #7f1d1d;
    border-color: #fecaca;
}

.badge-archived,
.badge-warning {
    background: var(--warning-soft);
    color: #78350f;
    border-color: #fde68a;
}

.badge-info,
.badge-transferred {
    background: var(--info-soft);
    color: #1e3a8a;
    border-color: #bfdbfe;
}

.badge-superadmin {
    background: #ede9fe;
    color: #4c1d95;
    border-color: #ddd6fe;
}

.badge-admin {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: #a7f3d0;
}

.badge-manager {
    background: var(--info-soft);
    color: #1e3a8a;
    border-color: #bfdbfe;
}

.badge-user {
    background: var(--accent-soft);
    color: #7c2d12;
    border-color: #fed7aa;
}

/* ============================================
   LOCATION DISPLAY
   ============================================ */
.location-info {
    background: var(--surface-muted);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    margin-bottom: 18px;
}

.location-info h3 {
    color: var(--text);
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.location-item {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.location-item:last-child {
    border-bottom: none;
}

.location-item strong {
    color: var(--primary-dark);
    font-weight: 800;
}

.color-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid transparent;
    font-weight: 650;
}

.alert-success {
    background: var(--success-soft);
    color: #14532d;
    border-color: #bbf7d0;
}

.alert-error {
    background: var(--danger-soft);
    color: #7f1d1d;
    border-color: #fecaca;
}

.alert-info {
    background: var(--info-soft);
    color: #1e3a8a;
    border-color: #bfdbfe;
}

.alert-warning {
    background: var(--warning-soft);
    color: #78350f;
    border-color: #fde68a;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(20, 49, 58, 0.58);
    overflow-y: auto;
    padding: 24px;
}

.modal-content {
    background: var(--surface);
    margin: 5% auto;
    padding: 28px;
    border-radius: var(--radius);
    width: min(100%, 620px);
    border: 1px solid var(--border);
    box-shadow: 0 28px 80px rgba(20, 49, 58, 0.24);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    color: var(--text);
    font-size: 1.25rem;
}

.close {
    font-size: 28px;
    font-weight: 800;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}

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

/* ============================================
   FILE UPLOAD AREA
   ============================================ */
.upload-area {
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 38px;
    text-align: center;
    background: var(--surface-muted);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-area:hover,
.upload-area.dragover {
    background: var(--primary-soft);
    border-color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.upload-area p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    font-weight: 650;
}

.file-list {
    margin-top: 18px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border-radius: var(--radius);
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.file-item span {
    flex: 1;
}

/* ============================================
   LOGIN
   ============================================ */
body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(132deg, rgba(20, 49, 58, 0.98) 0%, rgba(20, 49, 58, 0.98) 42%, rgba(243, 247, 245, 0) 42%),
        var(--bg);
}

.login-container {
    width: min(100%, 430px);
    background: rgba(255, 255, 255, 0.96);
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 80px rgba(20, 49, 58, 0.26);
}

.login-page .logo {
    display: block;
    text-align: center;
    margin-bottom: 28px;
}

.login-page .logo::before {
    display: none;
}

.login-logo-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: var(--radius);
    background: #f2b84b;
    color: #14313a;
    font-weight: 900;
    box-shadow: inset 0 -3px 0 rgba(20, 49, 58, 0.12);
}

.login-page .logo h1 {
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.login-page .logo p {
    color: var(--text-soft);
    font-size: 0.94rem;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    margin-top: 4px;
}

.footer-text {
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-text p {
    margin: 4px 0;
}

.footer-text a {
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 36px;
    background: #14313a;
    color: rgba(255, 255, 255, 0.84);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .container {
    padding-top: 22px;
    padding-bottom: 22px;
}

.footer p {
    margin: 5px 0;
}

.footer-brand {
    color: #ffffff;
    font-weight: 750;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.84rem;
}

.footer a {
    color: #f2b84b;
    font-weight: 700;
}

.footer a:hover {
    color: #ffffff;
}

/* ============================================
   SPECIAL WORKFLOW PAGES
   ============================================ */
.page-wrapper {
    width: min(100%, 1400px) !important;
    margin: 0 auto !important;
    padding: 28px 24px 36px !important;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 750;
}

.upload-panel,
.documents-panel,
.delete-card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
}

.upload-panel h3,
.documents-header h3,
.doc-name,
.doc-name-large,
.detail-value,
.impact-section h3 {
    color: var(--text) !important;
}

.upload-panel p,
.doc-meta,
.detail-label,
.card-subtitle,
.no-documents,
.no-documents h4 {
    color: var(--text-soft) !important;
}

.file-drop-zone {
    border: 2px dashed var(--primary) !important;
    border-radius: var(--radius) !important;
    background: var(--surface-muted) !important;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--primary-dark) !important;
    background: var(--primary-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12) !important;
}

.file-drop-zone h4,
.detail-value a {
    color: var(--primary) !important;
}

.upload-btn,
.doc-count,
.doc-btn-view {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.upload-btn:hover,
.doc-btn-view:hover {
    background: var(--primary-dark) !important;
}

.file-location {
    background: #14313a !important;
    color: #ffffff !important;
    border-radius: var(--radius) !important;
}

.upload-info-box,
.document-item,
.document-preview,
.details-grid,
.user-details {
    background: var(--surface-muted) !important;
    border-color: var(--border) !important;
    border-radius: var(--radius) !important;
}

.document-item:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-sm) !important;
}

.doc-btn {
    border-radius: var(--radius) !important;
}

.doc-btn-download {
    background: var(--success) !important;
    color: #ffffff !important;
}

.doc-btn-delete {
    background: var(--danger) !important;
    color: #ffffff !important;
}

.card-title {
    color: var(--danger) !important;
}

.warning-banner,
.confirmation-section,
.confirmation-box {
    background: var(--danger-soft) !important;
    color: #7f1d1d !important;
    border: 1px solid #fecaca !important;
    border-radius: var(--radius) !important;
}

.warning-banner h3,
.confirmation-section label,
.confirmation-box label {
    color: #7f1d1d !important;
}

.impact-section {
    background: var(--warning-soft) !important;
    color: #78350f !important;
    border: 1px solid #fde68a !important;
    border-radius: var(--radius) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .user-info {
        justify-content: flex-start;
    }

    .nav-menu ul {
        padding: 10px 14px;
    }

    .container {
        padding: 22px 14px 30px;
    }

    .page-title {
        font-size: 1.55rem;
    }

    .dashboard-grid,
    .form-row,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .filter-bar,
    .container > .card-header {
        padding: 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .location-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    body.login-page {
        align-items: flex-start;
        background: var(--bg);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.05rem;
    }

    .logo::before {
        width: 38px;
        height: 38px;
    }

    .btn {
        width: 100%;
        white-space: normal;
    }

    .actions .btn,
    .data-table .actions .btn,
    .card-header .btn {
        width: auto;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .login-container {
        padding: 24px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .nav-menu,
    .btn,
    .filter-bar,
    .pagination,
    .footer {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .card,
    .table-container {
        box-shadow: none;
        border: 1px solid #dddddd;
    }

    .data-table {
        font-size: 0.85rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.fw-bold { font-weight: 800; }
.fw-normal { font-weight: 400; }

.color-primary { color: var(--primary); }
.color-success { color: var(--success); }
.color-danger { color: var(--danger); }
.color-warning { color: var(--warning); }
.color-info { color: var(--info); }
