:root {
    --primary: #63b50b;
    --primary-dark: #4f8f09;
    --secondary: #f7f7f7;
    --success: #63b50b;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #63b50b;
    --dark: #0f172a;
    --gray-50: #f9fafb;
    --gray-100: #f7f7f7;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --light: #f7f7f7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --login-offset-x: 0px;
    --login-offset-y: -50px;
}

* {
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
    background: url("/static/core/img/1700903716984.jpeg") center/cover no-repeat fixed;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Mobile body adjustments */
@media (max-width: 768px) {
    body {
        position: static;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--gray-100);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 181, 11, 0.2);
    box-shadow: var(--shadow-sm);
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

/* Mobile-specific header fixes */
@media (max-width: 768px) {
    .app-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    body:not(.login-page-body) {
        padding-top: 70px !important;
    }

    .dashboard-page {
        padding-top: 0 !important;
        min-height: calc(100vh - 70px);
    }

    /* Ensure header content is visible */
    .app-header .container-fluid {
        display: block !important;
    }

    .app-header .d-flex {
        display: flex !important;
    }
}

.app-header .badge {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.app-header .btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

.app-header .py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.app-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.login-page {
    min-height: 100svh;
    height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: auto;
    padding: 1rem;
    justify-content: center;
}

.login-page .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.login-page .row {
    min-height: calc(100dvh - 2rem);
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

.login-page .col-12,
.login-page .col-md-9,
.login-page .col-lg-5 {
    display: flex;
    justify-content: center;
}

.credential-fields {
    transition: opacity 0.2s ease, max-height 0.25s ease;
    max-height: 600px;
    overflow: visible;
}

.credential-fields.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
}

.login-page .form-select {
    padding-right: 2.5rem;
    background-position: right 0.85rem center;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 181, 11, 0.25), transparent 60%);
}

.login-card {
    border: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    transform: translate(var(--login-offset-x), var(--login-offset-y));
    max-height: calc(100svh - 2rem);
    overflow: auto;
}

.login-card:hover {
    transform: translate(var(--login-offset-x), var(--login-offset-y));
}

.login-card.card:hover {
    transform: translate(var(--login-offset-x), var(--login-offset-y)) !important;
}

.brand-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
}

.brand-icon i {
    color: white !important;
}

.login-page .btn-primary {
    background: var(--primary);
    border: none;
}

.login-page .btn-primary:hover {
    background: var(--primary-dark);
    filter: brightness(0.95);
}

.login-page .text-gradient {
    color: var(--primary);
}

.login-page .input-group-text i,
.login-page .card-body i {
    color: var(--primary);
}

.input-group .form-select,
.input-group .form-control {
    min-height: 52px;
    line-height: 1.5;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 181, 11, 0.15);
}

.input-group-text {
    min-width: 52px;
    justify-content: center;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-600);
}

.form-select {
    background-position: right 0.75rem center;
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.dashboard-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: var(--shadow-lg);
}

/* Modern Card Design */
.card {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, rgba(99, 181, 11, 0.05), rgba(85, 143, 9, 0.05));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.5rem;
}

/* Nav Tabs Modern Design */
.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 12px 12px 0 0;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    background: transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.nav-tabs .nav-link:hover {
    background: rgba(99, 181, 11, 0.05);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

/* Mobile-First Tables */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: rgba(99, 181, 11, 0.02);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.table tbody td strong {
    display: block;
    margin-bottom: 0.25rem;
}

.table tbody td small {
    display: block;
    color: var(--gray-600);
}

.table tbody td .badge {
    display: inline-block;
}

.table tbody td .d-flex {
    gap: 0.5rem;
}

/* Mobile Table Design - Simple Responsive */
@media (max-width: 768px) {

    html,
    body {
        height: auto;
        overflow: auto;
    }

    .table {
        border: 0;
        min-width: 100%;
        font-size: 0.875rem;
        display: table;
    }

    .table thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .table tbody td {
        padding: 0.75rem 0.5rem;
        white-space: normal;
        word-break: break-word;
    }

    .table tbody td .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
        display: inline-block;
    }

    .table tbody td .badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
        display: inline-block;
    }

    .table tbody td strong {
        font-size: 0.875rem;
        display: block;
    }

    .table tbody td small {
        font-size: 0.7rem;
        display: block;
    }

    /* Ensure action buttons stack properly on mobile */
    .table tbody td .d-flex {
        flex-wrap: wrap;
    }
}

.checklist-item {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.checklist-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.image-tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 576px) {

    html,
    body {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .login-card {
        border-radius: 24px;
        max-width: 100%;
        width: 100%;
    }

    .login-page {
        padding: 0.5rem;
    }

    .login-card .card-body {
        padding: 0.9rem !important;
    }

    .login-page .container {
        padding-left: 0;
        padding-right: 0;
    }

    .login-card .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .dashboard-page {
        align-items: flex-start;
        padding-top: 1rem;
    }


    .login-card .mb-5 {
        margin-bottom: 1rem !important;
    }

    .login-card .card-body {
        padding: 1.5rem !important;
    }

    .dashboard-card {
        padding: 24px;
    }
}

/* Badges */
.badge {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.bg-secondary {
    background: var(--secondary) !important;
    color: var(--dark) !important;
}

.bg-primary {
    background: var(--primary) !important;
    color: white !important;
}

.bg-success {
    background: var(--success) !important;
    color: white !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.bg-info {
    background: var(--primary) !important;
    color: white !important;
}

.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-group {
    gap: 0.25rem;
}

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

.btn-group .btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-success:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-group .btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

/* Modal Design */
.modal {
    z-index: 2000 !important;
    pointer-events: auto;
}

.modal-backdrop {
    z-index: 1990 !important;
    backdrop-filter: none;
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none;
}

.modal-dialog {
    z-index: 2001 !important;
    pointer-events: auto !important;
}

.modal-content {
    pointer-events: auto !important;
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, rgba(99, 181, 11, 0.05), rgba(85, 143, 9, 0.05));
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-weight: 700;
    color: var(--gray-800);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 181, 11, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(8, 145, 178, 0.1));
    color: var(--info);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: var(--success);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    color: var(--warning);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: var(--danger);
}

/* Table row selection */
.table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.table tbody tr.selected-row {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-left: 4px solid var(--danger);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.table tbody tr.selected-row td {
    color: var(--dark);
    font-weight: 500;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        padding-bottom: 2rem;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .app-header .container-fluid {
        padding: 0.75rem 1rem;
    }

    .app-header .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .login-card {
        border-radius: 16px;
        margin: 1rem;
    }

    .dashboard-card {
        padding: 1.25rem;
        border-radius: 20px;
        margin: 0.5rem;
    }

    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Tabs mobile */
    .nav-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        border-bottom: 2px solid var(--gray-200);
        padding-bottom: 0;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .nav-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .nav-tabs::-webkit-scrollbar-track {
        background: var(--gray-100);
    }

    .nav-tabs::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    .nav-tabs .nav-link {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        min-width: max-content;
        white-space: nowrap;
        font-weight: 600;
    }

    .nav-tabs .nav-link i {
        font-size: 1.1rem;
    }

    /* Button groups mobile */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-group .btn {
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
        white-space: normal;
        min-height: 44px;
    }

    .btn-group .btn.active {
        transform: scale(1) !important;
    }

    /* Row gaps for mobile */
    .row.g-3 {
        gap: 0.75rem !important;
    }

    .col-12 .btn {
        width: 100%;
    }

    /* Geolocation map mobile */
    #geolocation .card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }

    #geolocation .card-body {
        padding: 1rem;
    }

    #map {
        border-radius: 12px !important;
        width: 100%;
        height: 400px !important;
    }

    #mapStyleSelector {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .tab-content {
        padding: 0 !important;
    }

    /* Modal mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 16px;
    }

    /* Forms mobile */
    .input-group .form-select,
    .input-group .form-control {
        min-height: 48px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .form-control,
    .form-select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Buttons mobile */
    .btn {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .btn-sm {
        padding: 0.5rem 0.875rem;
        font-size: 0.813rem;
    }

    /* Badges mobile */
    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }

    /* Dashboard specific mobile */
    .dashboard-card {
        margin: 0;
        border-radius: 0;
        padding: 1rem;
    }

    .dashboard-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    h2.h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }

    h5 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }

    /* Empty state mobile */
    .empty-state i {
        font-size: 2.5rem;
    }

    /* Card body mobile */
    .card-body {
        padding: 1rem;
    }

    /* Ensure no overflow */
    .card,
    .modal-content,
    .alert {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Small text wrapping */
    small {
        word-wrap: break-word;
        display: inline-block;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-card {
        margin: 0.5rem;
    }

    .dashboard-card {
        padding: 1.25rem;
        margin: 0.5rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .nav-tabs .nav-link {
        font-size: 0.813rem;
        padding: 0.5rem 0.875rem;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Tab content animations */
.tab-pane {
    animation: fadeIn 0.4s ease-in;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Button hover animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Modal animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Tab nav animations */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Map marker animations */
.leaflet-marker-icon {
    animation: markerBounce 0.6s ease-out;
}

@keyframes markerBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Checklist specific styles */
.checklist-item {
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: white;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.checklist-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.image-tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    background: white;
    transition: all 0.3s ease;
}

.image-tile:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Utility classes */
.text-gradient {
    color: var(--primary);
}

.bg-gradient-primary {
    background: var(--primary) !important;
    color: white !important;
}

.shadow-soft {
    box-shadow: var(--shadow-sm);
}

.shadow-medium {
    box-shadow: var(--shadow);
}

.shadow-large {
    box-shadow: var(--shadow-lg);
}

/* Download dropdown responsiveness */
.download-menu .dropdown-menu {
    min-width: 160px;
}

.download-menu .btn,
.download-menu .dropdown-toggle,
.download-menu .dropdown-item {
    transition: none;
}

.download-menu .btn:hover,
.download-menu .dropdown-toggle:hover,
.download-menu .dropdown-item:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .download-menu {
        width: 100%;
    }

    .download-menu .dropdown-toggle {
        width: 100%;
    }

    .download-menu .dropdown-menu {
        width: 100%;
        min-width: 100%;
    }
}

/* Print styles */
@media print {

    .app-header,
    .btn,
    .nav-tabs,
    .modal-backdrop {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}
