/* Responsividade para todos os dispositivos */
:root {
    --primary-color: #0d6efd;
    --sidebar-width: 240px;
}

/* Base */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: all 0.2s;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.hover-shadow {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.12) !important;
    border-color: rgba(13, 110, 253, 0.15) !important;
}

.admin-page-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(32, 201, 151, 0.08));
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 18px;
}

.admin-page-hero .subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Sidebar */
.nav-link {
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 10px 15px;
}
.nav-link:hover {
    background: #f0f4ff;
}

/* Progress bars */
.progress {
    border-radius: 10px;
}

/* Tabelas responsivas */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* ============ TV (1920px+) ============ */
@media (min-width: 1920px) {
    body { font-size: 18px; }
    .h1, h1 { font-size: 2.5rem; }
    .h3, h3 { font-size: 2rem; }
    .h4, h4 { font-size: 1.75rem; }
    .card-body { padding: 2rem; }
    .container-fluid { padding: 2rem 3rem; }
    .navbar { height: 70px; }
    .btn { padding: 0.75rem 1.5rem; font-size: 1.1rem; }
    .badge { font-size: 1rem; padding: 0.5rem 1rem; }
}

/* ============ TV 4K (2560px+) ============ */
@media (min-width: 2560px) {
    body { font-size: 22px; }
    .container-fluid { max-width: 2400px; margin: 0 auto; }
}

/* ============ Desktop (1200px+) ============ */
@media (min-width: 1200px) and (max-width: 1919px) {
    body { font-size: 15px; }
}

/* ============ Tablet (768px - 1199px) ============ */
@media (min-width: 768px) and (max-width: 1199px) {
    .h1, h1 { font-size: 1.75rem; }
    .card-body { padding: 1rem; }
}

/* ============ Mobile (< 768px) ============ */
@media (max-width: 767px) {
    body { font-size: 14px; }
    .h1, h1 { font-size: 1.5rem; }
    .h3, h3 { font-size: 1.25rem; }
    .h4, h4 { font-size: 1.1rem; }
    .card-body { padding: 0.85rem; }
    .container-fluid { padding: 0.5rem; }
    .btn { font-size: 0.875rem; }
    
    /* Cards menores em mobile */
    .col-6 .card-body { padding: 0.75rem; }
    .col-6 .h4 { font-size: 1.25rem; }
}

/* ============ Mobile pequeno (< 400px) ============ */
@media (max-width: 399px) {
    .navbar-brand { font-size: 1rem; }
    .col-6 .h4 { font-size: 1.1rem; }
}

/* Impressão */
@media print {
    .navbar, aside, .btn, .offcanvas { display: none !important; }
    main { width: 100% !important; max-width: 100% !important; }
    .card { break-inside: avoid; }
}

/* Animações suaves */
.card, .btn, .nav-link {
    transition: all 0.2s ease;
}

/* Scrollbar customizada */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* Status badges */
.status-pendente { background: #fff3cd; color: #856404; }
.status-concluido { background: #d1e7dd; color: #0f5132; }
.status-atrasado { background: #f8d7da; color: #842029; }

/* Loading */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}