/*
 * =========================================
 * SGPA - FLUID AQUA DESIGN SYSTEM
 * Redesign Moderno com Estética Aquática
 * =========================================
 */

/* === FONTES PREMIUM === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* === VARIÁVEIS DE DESIGN === */
:root {
    /* Paleta Aqua Premium */
    --aqua-50: #ECFEFF;
    --aqua-100: #CFFAFE;
    --aqua-200: #A5F3FC;
    --aqua-300: #67E8F9;
    --aqua-400: #22D3EE;
    --aqua-500: #06B6D4;
    --aqua-600: #0891B2;
    --aqua-700: #0E7490;
    --aqua-800: #155E75;
    --aqua-900: #164E63;
    
    /* Cores de Destaque */
    --primary: #0891B2;
    --primary-light: #22D3EE;
    --primary-dark: #0E7490;
    --primary-glow: rgba(8, 145, 178, 0.4);
    
    /* Acentos */
    --accent-coral: #F97316;
    --accent-violet: #8B5CF6;
    --accent-emerald: #10B981;
    --accent-rose: #F43F5E;
    
    /* Superfícies */
    --surface-0: #FFFFFF;
    --surface-1: #F8FDFE;
    --surface-2: #F0FAFB;
    --surface-3: #E6F7F9;
    --surface-glass: rgba(255, 255, 255, 0.85);
    
    /* Texto */
    --text-primary: #0C4A6E;
    --text-secondary: #0369A1;
    --text-muted: #7DD3FC;
    --text-inverse: #FFFFFF;
    
    /* Bordas */
    --border-light: rgba(14, 116, 144, 0.1);
    --border-medium: rgba(14, 116, 144, 0.2);
    --border-accent: rgba(34, 211, 238, 0.5);
    
    /* Status */
    --success: #10B981;
    --success-bg: #D1FAE5;
    --warning: #F59E0B;
    --warning-bg: #FEF3C7;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
    --info: #0EA5E9;
    --info-bg: #E0F2FE;
    
    /* Sombras Fluidas */
    --shadow-sm: 0 2px 8px -2px rgba(14, 116, 144, 0.1);
    --shadow-md: 0 8px 24px -8px rgba(14, 116, 144, 0.15);
    --shadow-lg: 0 16px 48px -12px rgba(14, 116, 144, 0.2);
    --shadow-xl: 0 24px 64px -16px rgba(14, 116, 144, 0.25);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.3);
    --shadow-card: 0 4px 24px -4px rgba(14, 116, 144, 0.12);
    
    /* Métricas */
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Transições */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--aqua-500) 0%, var(--aqua-600) 100%);
    --gradient-hero: linear-gradient(135deg, #0C4A6E 0%, #0E7490 50%, #0891B2 100%);
    --gradient-surface: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,253,254,0.95) 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface-1);
    color: var(--text-primary);
    line-height: 1.7;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern Sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        var(--gradient-glow),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(8, 145, 178, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* === CABEÇALHO GLOBAL === */
.site-header, .login-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    z-index: 1000;
    transition: all 0.3s var(--ease-smooth);
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aqua-300), transparent);
    opacity: 0.5;
}

.login-header {
    height: auto;
    min-height: var(--header-height);
    padding: 1rem 2.5rem;
}

.site-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(8, 145, 178, 0.3));
    transition: transform 0.3s var(--ease-bounce);
}

.site-title:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.site-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.8;
}

.developer-credits {
    text-align: right;
    line-height: 1.4;
}

.developer-credits p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.developer-credits strong {
    color: var(--primary);
    font-weight: 600;
}

.developer-credits p:last-child {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* === PÁGINA DE LOGIN === */
.login-body {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 2rem) 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Ondas Animadas no Background */
.login-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 200px;
    animation: waveMove 20s linear infinite;
    opacity: 0.6;
}

.login-body::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,128C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 200px;
    animation: waveMove 15s linear infinite reverse;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.login-container {
    background: var(--surface-0);
    width: 100%;
    max-width: 420px;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    animation: floatUp 0.8s var(--ease-fluid);
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo-img {
    height: 90px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 16px rgba(8, 145, 178, 0.3));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* === PÁGINA INICIAL (Welcome) === */
body.welcome-body {
    padding-top: 0;
    background: var(--surface-0);
}

.welcome-header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.hero-section {
    min-height: 100vh;
    padding: 8rem 2rem 6rem;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Efeito de Partículas de Água */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(103, 232, 249, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-section h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--text-inverse);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--aqua-200);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--aqua-300);
    border-radius: var(--radius-full);
    animation: underlineGrow 1s var(--ease-fluid) 0.5s both;
}

@keyframes underlineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 10;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

.feature-card {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.4s var(--ease-fluid);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-fluid);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: var(--text-primary);
}

/* CTA Card */
.cta-card {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 2rem;
    border-radius: var(--radius-xl);
    margin: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotateBg 15s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-card h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
}

/* Footer */
.welcome-footer {
    background: var(--surface-2);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.welcome-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === LAYOUT PRINCIPAL (Dashboard) === */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    animation: fadeInUp 0.5s var(--ease-fluid);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    background: var(--surface-0);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

/* Navegação do App */
.app-nav {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-2);
    flex-wrap: wrap;
}

/* === DASHBOARD GRID === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem;
}

.dashboard-card {
    background: var(--surface-0);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s var(--ease-fluid);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s var(--ease-fluid);
}

.dashboard-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--aqua-300);
}

.dashboard-card:hover::before {
    opacity: 0.03;
}

.dashboard-icon {
    width: 72px;
    height: 72px;
    background: var(--aqua-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.4s var(--ease-bounce);
    position: relative;
    z-index: 1;
}

.dashboard-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s var(--ease-bounce);
}

.dashboard-icon i,
.dashboard-icon svg,
.dashboard-icon .fa,
.dashboard-icon .fas {
    font-size: 28px !important;
    color: var(--primary);
    transition: all 0.4s var(--ease-bounce);
    position: relative;
    z-index: 2;
}

.dashboard-card:hover .dashboard-icon {
    transform: scale(1.1) rotate(-5deg);
}

.dashboard-card:hover .dashboard-icon::after {
    opacity: 1;
    transform: scale(1);
}

.dashboard-card:hover .dashboard-icon i,
.dashboard-card:hover .dashboard-icon svg {
    color: white;
    transform: scale(1.1);
}

.dashboard-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* === FORMULÁRIOS & INPUTS === */
.content-section {
    padding: 2.5rem;
    animation: slideIn 0.4s var(--ease-fluid);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea,
.filter-panel input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--surface-1);
    color: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--aqua-300);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface-0);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Select Customizado */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
    padding-right: 3rem;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.3s var(--ease-smooth);
}

.select-wrapper:hover::after {
    border-color: var(--primary);
}

/* === BOTÕES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s var(--ease-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface-0);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* Botões de Navegação */
.nav-button {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    background: transparent;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s var(--ease-smooth);
}

.nav-button:hover {
    background: var(--aqua-50);
    color: var(--primary);
}

.nav-button.btn-back {
    border: 2px solid var(--border-light);
}

.nav-button.btn-back:hover {
    border-color: var(--primary);
}

.nav-button.btn-logout {
    margin-left: auto;
    color: var(--danger);
    background: var(--danger-bg);
}

.nav-button.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* === TABELAS === */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-top: 1.5rem;
    background: var(--surface-0);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

th {
    background: var(--surface-2);
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
}

td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background 0.2s var(--ease-smooth);
}

tbody tr:hover {
    background: var(--aqua-50);
}

/* Ações e Status */
.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-acao {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--surface-0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
}

.btn-acao:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.status {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-entregue {
    background: var(--success-bg);
    color: var(--success);
}

.status-pendente {
    background: var(--warning-bg);
    color: var(--warning);
}

/* === FILTROS & AUTOCOMPLETE === */
.filter-panel {
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.radio-group input {
    margin-right: 0.5rem;
    width: auto;
    accent-color: var(--primary);
}

.autocomplete-container {
    position: relative;
}

.autocomplete-sugestoes {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-0);
    border: 2px solid var(--border-medium);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 220px;
    overflow-y: auto;
    z-index: 500;
    box-shadow: var(--shadow-lg);
}

.sugestao-item {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    transition: all 0.2s var(--ease-smooth);
}

.sugestao-item:hover {
    background: var(--aqua-50);
    color: var(--primary);
    padding-left: 1.5rem;
}

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

/* === MODAIS === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 74, 110, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s var(--ease-smooth);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.modal-content {
    background: var(--surface-0);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlideIn 0.4s var(--ease-bounce);
    border: 1px solid var(--border-light);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    background: var(--gradient-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin: 0;
    color: white;
}

.modal-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.25rem 2rem;
    background: var(--surface-2);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* === UTILIDADES === */
.hidden {
    display: none !important;
}

.status-message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-message.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Empty State */
.empty-row {
    text-align: center;
    padding: 4rem !important;
    color: var(--text-muted);
}

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

/* === SCROLLBAR CUSTOMIZADA === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--aqua-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aqua-400);
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }
    
    .site-header, .login-header {
        flex-direction: column;
        height: auto;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        text-align: center;
    }
    
    .site-title {
        justify-content: center;
    }
    
    .developer-credits {
        text-align: center;
    }
    
    body {
        padding-top: 120px;
    }
    
    .login-body {
        padding-top: 140px;
    }
    
    .hero-section {
        padding: 6rem 1.5rem 4rem;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .app-nav {
        justify-content: center;
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Tabelas Mobile */
    .table-wrapper {
        border-radius: var(--radius-md);
    }
    
    table {
        min-width: auto;
    }
    
    thead {
        display: none;
    }
    
    tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 1rem;
        background: var(--surface-0);
        box-shadow: var(--shadow-sm);
    }
    
    td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px dashed var(--border-light);
    }
    
    td:last-child {
        border-bottom: none;
    }
    
    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-secondary);
        font-size: 0.8rem;
        text-transform: uppercase;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
    }
}

/* === ANIMAÇÕES EXTRAS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger Animation para Cards */
.dashboard-grid .dashboard-card {
    animation: slideUp 0.5s var(--ease-fluid) both;
}

.dashboard-grid .dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid .dashboard-card:nth-child(2) { animation-delay: 0.15s; }
.dashboard-grid .dashboard-card:nth-child(3) { animation-delay: 0.2s; }
.dashboard-grid .dashboard-card:nth-child(4) { animation-delay: 0.25s; }
.dashboard-grid .dashboard-card:nth-child(5) { animation-delay: 0.3s; }
.dashboard-grid .dashboard-card:nth-child(6) { animation-delay: 0.35s; }

/* Feature Cards Stagger */
.features-grid .feature-card {
    animation: slideUp 0.6s var(--ease-fluid) both;
}

.features-grid .feature-card:nth-child(1) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.35s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.5s; }

/* === LOADING STATE === */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--aqua-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === FOCUS VISIBLE (Acessibilidade) === */
:focus-visible {
    outline: 3px solid var(--aqua-300);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--aqua-300);
    outline-offset: 2px;
}
