/* ========================================
   PROVA MODELAGEM - CUSTOM STYLES
   Modern, Professional & User-Friendly
   ======================================== */

:root {
    /* Color Palette - ROSA PUKET */
    --primary: #e6007e;
    --primary-hover: #c20069;
    --primary-light: #fce7f3;
    --secondary: #64748b;
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fef3c7;
    --info: #06b6d4;
    --info-hover: #0891b2;
    --info-light: #cffafe;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL IMPROVEMENTS
   ======================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   NAVBAR IMPROVEMENTS
   ======================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   CARD IMPROVEMENTS
   ======================================== */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    border-bottom: 2px solid var(--gray-100);
    font-weight: 600;
    padding: var(--spacing-lg);
    background: var(--gray-50);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-md);
}

/* Dashboard Cards */
.report-card-item .card {
    height: 100%;
    border-left: 4px solid var(--primary);
}

.report-card-item .card:hover {
    border-left-color: var(--primary-hover);
}

.report-card-item .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

/* ========================================
   BUTTON IMPROVEMENTS
   ======================================== */

.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #a3005a 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-hover) 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-hover) 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-hover) 0%, #b91c1c 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-hover) 100%);
    color: white !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--warning-hover) 0%, #b45309 100%);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, var(--info-hover) 100%);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success {
    border-width: 2px;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

/* ========================================
   FORM IMPROVEMENTS
   ======================================== */

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* File Input Improvements */
input[type="file"].form-control {
    padding: 0.5rem;
}

input[type="file"].form-control::-webkit-file-upload-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-base);
}

input[type="file"].form-control::-webkit-file-upload-button:hover {
    background: var(--primary-hover);
}

/* ========================================
   BADGE IMPROVEMENTS
   ======================================== */

.badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.025em;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
}

.badge.bg-danger {
    background: var(--danger) !important;
}

.badge.bg-info {
    background: var(--info) !important;
}

.badge.bg-secondary {
    background: var(--secondary) !important;
}

/* ========================================
   ALERT IMPROVEMENTS
   ======================================== */

.alert {
    border: none;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: var(--success-light);
    border-left-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: var(--danger-light);
    border-left-color: var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    border-left-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: var(--info-light);
    border-left-color: var(--info);
    color: #155e75;
}

/* ========================================
   TAB IMPROVEMENTS
   ======================================== */

.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-weight: 500;
    padding: var(--spacing-md) var(--spacing-lg);
    transition: all var(--transition-base);
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--gray-300);
    color: var(--gray-900);
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    background: none;
}

/* ========================================
   MODAL IMPROVEMENTS
   ======================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.modal-title {
    font-weight: 700;
    color: var(--gray-900);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg) var(--spacing-xl);
}

/* ========================================
   LOADING OVERLAY - VERSÃO 2.0
   ======================================== */

/* Classes para o loading overlay */
.loading-overlay-hidden,
#loadingOverlay:not(.loading-overlay-visible) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

.loading-overlay-visible {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 1030 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* QUANDO MODAL ESTÁ ABERTO - ESCONDER TUDO */
body.modal-open .loading-overlay-visible,
body.modal-open #loadingOverlay,
body.modal-open [class*="loading"]:not(.spinner-border) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* ========================================
   MODAIS - CONFIGURAÇÃO DEFINITIVA
   ======================================== */

/* Z-index hierarchy para modais */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1060 !important;
    pointer-events: auto !important;
}

.modal-content {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1061 !important;
}

/* Garantir que TODOS os elementos dentro do modal são clicáveis */
.modal-content * {
    pointer-events: auto;
}

/* Exceto ícones dentro de botões - eles não devem capturar cliques */
.modal-content button i,
.modal-content .btn i,
.modal-footer button i,
.modal-footer .btn i,
button i,
.btn i {
    pointer-events: none !important;
}

/* Modal body e elementos interativos */
.modal-body {
    pointer-events: auto !important;
}

.modal-body input,
.modal-body button,
.modal-body select,
.modal-body textarea,
.modal-body .btn,
.modal-body a {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.modal-body input[type="text"],
.modal-body input[type="password"],
.modal-body input[type="email"],
.modal-body textarea {
    cursor: text;
}

/* Modal footer - layout flexível */
.modal-footer {
    pointer-events: auto !important;
    position: relative;
    z-index: 1062 !important;
}

.modal-footer form {
    display: flex !important;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.modal-footer button,
.modal-footer .btn,
.modal-footer form button,
.modal-footer form .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 2;
}

/* Modal header */
.modal-header {
    pointer-events: auto !important;
}

.modal-header .btn-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10;
}

/* Responsivo - mobile */
@media (max-width: 576px) {
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer form {
        flex-direction: column;
        width: 100%;
    }

    .modal-footer button,
    .modal-footer .btn,
    .modal-footer form button,
    .modal-footer form .btn {
        width: 100%;
        margin: 0;
    }
}

.spinner-container {
    text-align: center;
    color: white;
}

.spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.4rem;
}

/* ========================================
   IMAGE IMPROVEMENTS
   ======================================== */

.img-thumbnail {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.img-thumbnail:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ========================================
   SEARCH INPUT IMPROVEMENTS
   ======================================== */

#searchInput {
    padding-left: 2.75rem;
    font-size: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1.25rem;
}

/* ========================================
   CHECKBOX GROUP IMPROVEMENTS
   ======================================== */

.checkbox-group .btn-check:checked + .btn {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.checkbox-group .btn {
    transition: all var(--transition-base);
}

.checkbox-group .btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   STATUS INDICATORS
   ======================================== */

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-aprovada::before {
    background: var(--success);
}

.status-reprovada::before {
    background: var(--danger);
}

.status-em-andamento::before {
    background: var(--warning);
}

.status-comite::before {
    background: var(--info);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   DYNAMIC UPLOAD PLACEHOLDER
   ======================================== */

.dynamic-upload-placeholder {
    min-height: 60px;
    transition: all var(--transition-base);
}

.dynamic-upload-placeholder:empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.dynamic-upload-placeholder:empty::after {
    content: 'Selecione os tamanhos acima para adicionar fotos';
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
}

.page-header h1 {
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

/* ========================================
   FEEDBACK SECTIONS
   ======================================== */

.feedback-card {
    border-left: 4px solid;
    transition: all var(--transition-base);
}

.feedback-card.qualidade {
    border-left-color: var(--success);
}

.feedback-card.estilo {
    border-left-color: var(--info);
}

.feedback-card.modelagem {
    border-left-color: var(--warning);
}

.feedback-card:hover {
    transform: translateX(4px);
}

/* ========================================
   TIMELINE (for proof history)
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.375rem;
    top: 0.375rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Large Desktop (> 1400px) */
@media (min-width: 1401px) {
    .container,
    .main-container {
        max-width: 1600px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reports-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* Desktop (1200px - 1400px) */
@media (min-width: 1200px) and (max-width: 1400px) {
    .container,
    .main-container {
        max-width: 1200px;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .card-body {
        padding: var(--spacing-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .card-body {
        padding: var(--spacing-md);
    }

    .btn:not(.btn-check + .btn):not(.btn-group .btn) {
        width: 100%;
        justify-content: center;
    }

    .modal-body {
        padding: var(--spacing-lg);
    }

    .page-header {
        padding: var(--spacing-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Mobile (< 576px) */
@media (max-width: 575px) {
    body {
        font-size: 0.9375rem;
    }

    .main-container {
        padding: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 0.875rem 1rem;
    }

    .btn:not(.btn-check + .btn):not(.btn-group .btn):not(.view-toggle-btn) {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }

    .modal-footer form {
        width: 100%;
    }

    .page-header {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs .nav-link {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }

    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    textarea.form-control {
        font-size: 16px;
        min-height: auto;
    }

    .form-label {
        font-size: 0.875rem;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-group .btn {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 60px;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .checkbox-group .btn-group {
        width: 100%;
    }

    .checkbox-group .btn-group .btn {
        flex: 1 1 auto;
    }

    /* Report cards on mobile */
    .report-card {
        padding: 14px;
    }

    .report-title {
        font-size: 0.9rem;
    }

    .report-meta {
        font-size: 0.8rem;
    }

    .report-actions {
        flex-direction: column;
        gap: 8px;
    }

    .report-actions .btn-view,
    .report-actions .btn-export {
        width: 100%;
        justify-content: center;
    }

    /* Navbar mobile */
    .navbar-brand img {
        height: 28px;
    }

    .navbar-brand span {
        display: none;
    }
}

/* Very Small Mobile (< 400px) */
@media (max-width: 399px) {
    body {
        font-size: 0.875rem;
    }

    .main-container {
        padding: 0.5rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }

    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn-group .btn {
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.8rem;
        padding: 0.45rem 0.5rem;
    }

    .stat-card {
        padding: 12px 14px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 0;
    }

    .main-container {
        padding: 0.75rem 1rem;
    }

    .modal-dialog {
        margin: 0.5rem auto;
        max-height: 90vh;
    }

    .modal-body {
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn,
    a,
    button,
    [role="button"] {
        -webkit-tap-highlight-color: rgba(230, 0, 126, 0.2);
    }

    .btn:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    .dropdown-item {
        padding: 0.875rem 1.25rem;
    }

    /* Larger touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .img-thumbnail {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}
