/* ==================================================================
   PAGINATION - Branded Bootstrap 5 Styling
   ================================================================== */

/* Pagination container */
.pagination {
    gap: 0.25rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Base page link styling */
.pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem !important;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* Remove default Bootstrap border-radius overrides */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.5rem !important;
}

/* Hover state */
.pagination .page-link:hover {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

/* Active/current page */
.pagination .page-item.active .page-link {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35);
}

/* Disabled state */
.pagination .page-item.disabled .page-link {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-color: var(--bs-border-color, #dee2e6);
    color: var(--bs-secondary-color, #6c757d);
    cursor: not-allowed;
    opacity: 0.65;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Focus state for accessibility */
.pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    z-index: 2;
}

/* Ensure any SVG/icon arrows are properly sized */
.pagination .page-link svg,
.pagination .page-link i {
    font-size: 0.875rem !important;
    width: 1rem !important;
    height: 1rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Previous/Next text styling */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Pagination info text (Showing X to Y of Z) */
.pagination-info,
nav[aria-label="Pagination Navigation"] > div > div > p,
.d-flex.justify-content-center > nav > div {
    font-size: 0.875rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Dark theme pagination adjustments */
[data-bs-theme="dark"] .pagination .page-link,
.dark-theme .pagination .page-link {
    background: var(--bs-dark-bg-subtle, #1a1d20);
    border-color: var(--bs-border-color, #495057);
    color: var(--bs-body-color, #dee2e6);
}

[data-bs-theme="dark"] .pagination .page-link:hover,
.dark-theme .pagination .page-link:hover {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link,
.dark-theme .pagination .page-item.disabled .page-link {
    background: var(--bs-secondary-bg, #2b3035);
    color: var(--bs-secondary-color, #6c757d);
}

/* ==================================================================
   SHARED MODAL FORM SYSTEM
   ================================================================== */
.modal-content .genio-form-shell .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.modal-content .genio-form-shell .form-control,
.modal-content .genio-form-shell .form-select,
.modal-content .genio-form-shell textarea.form-control {
    border-radius: 0.6rem;
}

.modal-content .genio-form-shell .form-control[readonly],
.modal-content .genio-form-shell textarea.form-control[readonly] {
    background-color: rgba(var(--bs-primary-rgb), 0.06);
    border-color: var(--bs-border-color);
    opacity: 1;
}

.modal-content .genio-form-shell .form-text,
.modal-content .genio-form-shell small.text-muted {
    font-size: 0.8rem;
    line-height: 1.35;
}

.modal-content .genio-form-shell .form-check-label {
    font-weight: 500;
}

.genio-form-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bs-body-bg);
}

.genio-form-section-title {
    font-size: 0.96rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.genio-form-helper {
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
}

.genio-form-note {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.65rem;
    background: rgba(var(--bs-primary-rgb), 0.08);
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
}

.modal-content .genio-form-shell .accordion-button {
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-dialog-scrollable .modal-body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Keep Bootstrap scrollable modals working when a form wraps modal-content */
.modal-dialog-scrollable > form {
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.modal-dialog-scrollable > form > .modal-content {
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog-scrollable > form > .modal-content > .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* ==================================================================
   TERMINAL EDIT MODAL POLISH (friendly + viewport-safe)
   ================================================================== */
#termModal .term-edit-dialog {
    --term-modal-margin: clamp(0.5rem, 1.6vh, 1rem);
    margin-top: var(--term-modal-margin);
    margin-bottom: var(--term-modal-margin);
    height: calc(100dvh - (var(--term-modal-margin) * 2));
}

@supports not (height: 100dvh) {
    #termModal .term-edit-dialog {
        height: calc(100vh - (var(--term-modal-margin) * 2));
    }
}

#termModal .term-edit-content {
    border-radius: 0.95rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

#termModal .term-edit-header {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.09), rgba(var(--bs-primary-rgb), 0.03));
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.14);
}

#termModal .genio-form-section {
    border-color: rgba(var(--bs-primary-rgb), 0.12);
    background: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), 1), rgba(var(--bs-primary-rgb), 0.02));
}

#termModal .genio-form-note {
    border-color: rgba(var(--bs-primary-rgb), 0.2);
    background: rgba(var(--bs-primary-rgb), 0.07);
}

#termModal .term-readonly-pill {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    border: 1px solid #d4dce7;
    background: #eef2f7;
    color: #5f6b7a;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#termModal .term-status-pill {
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.32rem 0.58rem;
}

#termModal .term-status-online {
    color: #196a3d;
    background: #d9f3e6;
    border-color: #b7e5cd;
}

#termModal .term-status-neutral {
    color: #5b6472;
    background: #edf1f6;
    border-color: #d8e0ea;
}

#termModal .term-status-disabled {
    color: #8a2f3f;
    background: #fde7eb;
    border-color: #f6c3cf;
}

#termModal .term-delete-btn {
    color: #7a4b53;
    border-color: #dfc1c7;
    background: #fff;
}

#termModal .term-delete-btn:hover,
#termModal .term-delete-btn:focus {
    color: #8f2f40;
    border-color: #d8939f;
    background: #fff4f6;
}

#termModal .modal-footer {
    border-top-color: rgba(var(--bs-primary-rgb), 0.12);
    background: rgba(var(--bs-body-bg-rgb), 0.94);
}

[data-bs-theme="dark"] #termModal .term-edit-content,
.dark-theme #termModal .term-edit-content {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] #termModal .term-readonly-pill,
.dark-theme #termModal .term-readonly-pill {
    border-color: #495568;
    background: #2b3340;
    color: #d3d9e2;
}

[data-bs-theme="dark"] #termModal .term-status-online,
.dark-theme #termModal .term-status-online {
    color: #bbf7d0;
    background: rgba(22, 101, 52, 0.36);
    border-color: rgba(22, 101, 52, 0.7);
}

[data-bs-theme="dark"] #termModal .term-status-neutral,
.dark-theme #termModal .term-status-neutral {
    color: #d5dde8;
    background: rgba(71, 85, 105, 0.35);
    border-color: rgba(100, 116, 139, 0.55);
}

[data-bs-theme="dark"] #termModal .term-status-disabled,
.dark-theme #termModal .term-status-disabled {
    color: #fecdd3;
    background: rgba(157, 23, 77, 0.32);
    border-color: rgba(190, 24, 93, 0.5);
}

[data-bs-theme="dark"] #termModal .term-delete-btn,
.dark-theme #termModal .term-delete-btn {
    color: #f9c7d1;
    border-color: rgba(190, 24, 93, 0.45);
    background: rgba(30, 41, 59, 0.3);
}

[data-bs-theme="dark"] #termModal .term-delete-btn:hover,
.dark-theme #termModal .term-delete-btn:hover,
[data-bs-theme="dark"] #termModal .term-delete-btn:focus,
.dark-theme #termModal .term-delete-btn:focus {
    background: rgba(190, 24, 93, 0.26);
    border-color: rgba(244, 114, 182, 0.62);
    color: #ffd6df;
}

[data-bs-theme="dark"] .modal-content .genio-form-shell .form-control[readonly],
.dark-theme .modal-content .genio-form-shell .form-control[readonly],
[data-bs-theme="dark"] .modal-content .genio-form-shell textarea.form-control[readonly],
.dark-theme .modal-content .genio-form-shell textarea.form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.04);
}

/* ==================================================================
   RESPONSIVE LAYOUT - Mobile First Approach
   ================================================================== */

/* Sidebar Base Styles */
#sidebar {
    min-width: 190px;
    max-width: 190px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
}

ul.nav {
    min-width: 120px;
}

/* ==================================================================
   TABLE UTILITIES
   ================================================================== */
.table-responsive {
    overflow-x: auto;
}

.table-responsive > table {
    width: 100%;
}

.table-responsive > table th,
.table-responsive > table td {
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Support the alternate wrapper pattern: modal-content > form > modal-body */
.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.card pre,
.card code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

@media (max-width: 575.98px) {
    .table-responsive > table th,
    .table-responsive > table td {
        font-size: 0.85rem;
        padding: 0.5rem 0.25rem;
    }

    .table-responsive > table th {
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .table-responsive .btn-group,
    .table-responsive .btn-group-sm {
        flex-wrap: wrap;
        gap: 0.25rem;
        width: 100%;
    }

    .table-responsive .btn-group .btn,
    .table-responsive .btn-group-sm .btn {
        flex: 1 0 auto;
        min-width: 44px;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Mobile: Stack table cells vertically for better readability */
    .table-responsive > table {
        display: block;
    }

    .table-responsive > table thead {
        display: none;
    }

    .table-responsive > table tbody,
    .table-responsive > table tr,
    .table-responsive > table td {
        display: block;
        width: 100%;
    }

    .table-responsive > table tr {
        border: 1px solid var(--bs-border-color);
        margin-bottom: 1rem;
        border-radius: 0.375rem;
        padding: 0.75rem;
        background: var(--bs-card-bg);
    }

    .table-responsive > table td {
        border: none;
        padding: 0.5rem 0;
        text-align: left !important;
    }

    .table-responsive > table td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        display: inline-block;
        min-width: 100px;
    }

    /* For tables without data-label, use column index */
    .table-responsive > table td:first-child:not([data-label]):before {
        content: "";
    }
}

.chart-container {
    position: relative;
    height: 120px;
    width: 100%;
}

/* ==================================================================
   MOBILE RESPONSIVE (< 768px)
   ================================================================== */
@media (max-width: 767.98px) {
    /* Mobile: Sidebar collapses to off-canvas */
    #sidebar {
        position: fixed;
        top: 0;
        left: -250px; /* Hidden by default */
        height: 100vh;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    #sidebar.show {
        left: 0; /* Slide in */
    }
    
    /* Backdrop for mobile sidebar */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1030;
    }
    
    .sidebar-backdrop.show {
        display: block;
    }
    
    /* Mobile: Add hamburger menu button */
    .navbar-mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: none;
        background: transparent;
        color: inherit;
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.2s;
    }
    
    .navbar-mobile-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-mobile-toggle i {
        font-size: 24px;
    }
    
    /* Mobile: Adjust main content */
    main {
        padding: 1rem !important; /* Smaller padding on mobile */
    }
    
    /* Mobile: Stack cards vertically */
    .row > [class*='col-'] {
        margin-bottom: 1rem;
    }
    
    /* Mobile: Full-width buttons */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-group > .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Mobile: Button groups in headers */
    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }
    
    .d-flex.gap-2 > .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile: Smaller font sizes */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    /* Mobile: Horizontal scroll for wide tables */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: 0.375rem;
    }
    
    /* Mobile: Smaller action buttons in tables */
    .table .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Mobile: Stack form groups */
    .form-row,
    .row.g-3,
    .row.g-4 {
        flex-direction: column;
    }
    
    .row.g-3 > [class*='col-'],
    .row.g-4 > [class*='col-'] {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Mobile: Logo size */
    #sidebar .nav-item img {
        max-width: 100px !important;
    }
    
    /* Mobile: Cards */
    .card {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile: Modals */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .genio-form-shell .genio-form-section {
        padding: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .genio-form-shell .genio-form-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
    }

    .genio-form-shell .genio-form-note {
        padding: 0.55rem 0.7rem;
        margin-bottom: 0.85rem;
    }

    .genio-form-shell .badge {
        white-space: normal;
    }

    .genio-form-modal .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .genio-form-modal .modal-footer .btn {
        width: 100%;
    }

    .genio-form-modal .modal-footer .d-flex {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .genio-form-modal .modal-footer .d-flex .btn {
        width: 100%;
    }
    
    /* Mobile: Tooltips - disable on very small screens or adjust position */
    [data-bs-toggle="tooltip"] {
        position: relative;
    }
    
    /* Mobile: Disable tooltips on touch devices to prevent overlap issues */
    @media (hover: none) and (pointer: coarse) {
        .tooltip {
            display: none !important;
        }
    }
    
    /* Mobile: Input groups */
    .input-group {
        flex-direction: column;
    }
    
    .input-group > .form-control,
    .input-group > .form-select,
    .input-group > .btn {
        width: 100%;
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    
    .input-group > .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile: Badges and labels */
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        word-break: break-word;
    }
    
    /* Mobile: Alerts */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    /* Mobile: Dashboard widgets */
    .col-6.col-md-4.col-lg-2 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Mobile: Kanban board (Tickets) - already handled in tickets/index.blade.php but ensure */
    .kanban-board {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .kanban-column {
        min-height: 300px;
    }
    
    /* Mobile: Search forms */
    form.d-flex {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    form.d-flex > input,
    form.d-flex > button,
    form.d-flex > a {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
    
    /* Mobile: Documentation cards */
    .col-md-4.mb-3,
    .col-md-8 {
        width: 100%;
    }
    
    /* Mobile: Text breaking */
    .text-break,
    .text-nowrap {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    /* Mobile: Code blocks */
    pre,
    code {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-x: auto;
        font-size: 0.85rem;
    }
    
    /* Mobile: Pagination - touch-friendly sizing */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.375rem;
    }
    
    .pagination .page-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Mobile: Hide some page numbers on very small screens */
    @media (max-width: 400px) {
        .pagination .page-item:not(:first-child):not(:last-child):not(.active) {
            display: none;
        }
        
        .pagination .page-item.active {
            display: flex;
        }
        
        /* Show ellipsis indicator */
        .pagination .page-item.active::before,
        .pagination .page-item.active::after {
            content: '...';
            padding: 0.5rem;
            color: var(--bs-secondary-color, #6c757d);
        }
    }
    
    /* Mobile: Filter forms */
    .card-body form.row {
        margin: 0;
    }
    
    .card-body form.row > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Mobile: Action buttons in table cells */
    td .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    td .btn-group .btn {
        flex: 0 0 auto;
        min-width: 36px;
    }
    
    /* Mobile: Avatar images */
    .avatar-sm {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Mobile: Breadcrumbs */
    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        word-break: break-word;
    }
}

/* ==================================================================
   TABLET RESPONSIVE (768px - 991.98px)
   ================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    #sidebar {
        min-width: 160px;
        max-width: 160px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
    
    main {
        padding: 2rem !important;
    }
    
    /* Tablet: 2 columns for cards */
    .col-lg-4 {
        width: 50%;
    }
    
    .col-lg-3 {
        width: 50%;
    }
    
    /* Tablet: Better table handling */
    .table-responsive {
        overflow-x: auto;
    }
    
    .table-responsive > table th,
    .table-responsive > table td {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
        word-break: break-word;
    }
    
    /* Tablet: Modals */
    .modal-dialog {
        max-width: 90%;
    }
    
    /* Tablet: Button groups */
    .btn-group {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    /* Tablet: Forms */
    .row.g-3 > [class*='col-md-'] {
        margin-bottom: 1rem;
    }
}

/* ==================================================================
   LAPTOP/DESKTOP (992px - 1399.98px)
   ================================================================== */
@media (min-width: 992px) and (max-width: 1399.98px) {
    #sidebar {
        min-width: 190px;
        max-width: 190px;
    }
    
    main {
        padding: 3rem !important;
    }
}

/* ==================================================================
   LARGE DESKTOP (>= 1400px)
   ================================================================== */
@media (min-width: 1400px) {
    #sidebar {
        min-width: 200px;
        max-width: 200px;
    }
    
    main {
        padding: 3rem 4rem !important;
    }
    
    .container-fluid {
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* ==================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch: Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .nav-link {
        padding: 12px 16px;
        min-height: 44px;
    }
    
    /* Touch: No hover effects */
    .nav-link:hover {
        background-color: transparent;
    }
    
    .nav-link:active {
        background-color: rgba(52, 73, 94, 0.8);
    }
}

/* ==================================================================
   PRINT STYLES
   ================================================================== */
@media print {
    #sidebar,
    .navbar,
    .btn,
    .floating-help-btn {
        display: none !important;
    }
    
    main {
        padding: 0 !important;
    }
    
    .table {
        font-size: 10pt;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* ==================================================================
   ACCESSIBILITY - REDUCED MOTION
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================================================================
   HIGH CONTRAST MODE
   ================================================================== */
@media (prefers-contrast: high) {
    .nav-link {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
}
