/* assets/css/style.css - Dark Tech Theme - Versão Melhorada */

:root {
    --bg-primary: #0F1117;
    --bg-secondary: #1A1D27;
    --bg-card: #222632;
    --bg-card-hover: #2A2F3E;
    --bg-input: #1A1D27;
    --text-primary: #E8EAF6;
    --text-secondary: #9BA3C4;
    --text-muted: #6B7280;
    --border-color: #2A2F3E;
    --border-light: #353B4A;
    
    --tech-blue: #4F8CF7;
    --tech-blue-dark: #3A7BD5;
    --tech-purple: #7C5CFC;
    --tech-cyan: #00D4FF;
    --tech-green: #00E676;
    --tech-yellow: #FFD740;
    --tech-red: #FF5252;
    --tech-pink: #FF4081;
    
    --gradient-primary: linear-gradient(135deg, #4F8CF7, #7C5CFC);
    --gradient-secondary: linear-gradient(135deg, #00D4FF, #4F8CF7);
    --gradient-success: linear-gradient(135deg, #00E676, #00C853);
    --gradient-danger: linear-gradient(135deg, #FF5252, #D32F2F);
    --gradient-warning: linear-gradient(135deg, #FFD740, #FFA000);
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(79, 140, 247, 0.15);
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.1);
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--tech-blue);
    border-radius: 10px;
}

/* Header */
.app-header {
    background: var(--bg-secondary);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.app-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header .badge-admin {
    background: var(--gradient-primary);
    color: white;
    font-size: 9px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards */
.card-tech {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.card-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-tech:hover::before {
    opacity: 1;
}

.card-tech:hover {
    transform: translateY(-2px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-tech .card-body {
    padding: 20px;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.stat-card .stat-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.stat-card .stat-number {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stat-card.primary .stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card.success .stat-number {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card.warning .stat-number {
    background: var(--gradient-warning);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card.danger .stat-number {
    background: var(--gradient-danger);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 10px;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    max-width: 480px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 500;
    padding: 4px 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    position: relative;
    min-width: 48px;
}

.nav-item .nav-icon {
    font-size: 20px;
    margin-bottom: 1px;
    transition: all 0.3s ease;
}

.nav-item .nav-label {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-item.active {
    color: var(--tech-cyan);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-item:active {
    transform: scale(0.92);
}

/* Botões */
.btn-tech {
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    width: 100%;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.btn-tech:hover::before {
    left: 100%;
}

.btn-tech:active {
    transform: scale(0.97);
}

.btn-tech-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(79, 140, 247, 0.3);
}

.btn-tech-primary:hover {
    box-shadow: 0 6px 30px rgba(79, 140, 247, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-tech-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.2);
}

.btn-tech-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 82, 82, 0.2);
}

.btn-tech-warning {
    background: var(--gradient-warning);
    color: #1A1D27;
    box-shadow: 0 4px 20px rgba(255, 215, 64, 0.2);
}

.btn-tech-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-tech-outline:hover {
    border-color: var(--tech-blue);
    color: var(--tech-blue);
    background: rgba(79, 140, 247, 0.05);
}

/* Formulários */
.form-tech {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.form-tech::placeholder {
    color: var(--text-muted);
}

.form-tech:focus {
    border-color: var(--tech-blue);
    box-shadow: 0 0 0 4px rgba(79, 140, 247, 0.1);
    outline: none;
    background: var(--bg-card);
}

.form-tech.is-invalid {
    border-color: var(--tech-red);
    box-shadow: 0 0 0 4px rgba(255, 82, 82, 0.1);
}

.form-label-tech {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* Badges */
.badge-tech {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-tech-success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--tech-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.badge-tech-danger {
    background: rgba(255, 82, 82, 0.15);
    color: var(--tech-red);
    border: 1px solid rgba(255, 82, 82, 0.2);
}

.badge-tech-warning {
    background: rgba(255, 215, 64, 0.15);
    color: var(--tech-yellow);
    border: 1px solid rgba(255, 215, 64, 0.2);
}

.badge-tech-info {
    background: rgba(0, 212, 255, 0.15);
    color: var(--tech-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Route Selector */
.route-selector-tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.route-option-tech {
    padding: 16px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.route-option-tech.active {
    border-color: var(--tech-cyan);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

.route-option-tech .option-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 2px;
}

.route-option-tech .option-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
}

.route-option-tech.active .option-label {
    color: var(--tech-cyan);
}

/* Alertas */
.alert-tech {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
}

.alert-tech-success {
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--tech-green);
    background: rgba(0, 230, 118, 0.05);
}

.alert-tech-danger {
    border-color: rgba(255, 82, 82, 0.3);
    color: var(--tech-red);
    background: rgba(255, 82, 82, 0.05);
}

.alert-tech-warning {
    border-color: rgba(255, 215, 64, 0.3);
    color: var(--tech-yellow);
    background: rgba(255, 215, 64, 0.05);
}

.alert-tech-info {
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--tech-cyan);
    background: rgba(0, 212, 255, 0.05);
}

/* Toast */
.toast-tech {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    max-width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
}

.toast-tech.success {
    border-color: var(--tech-green);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.1);
}
.toast-tech.error {
    border-color: var(--tech-red);
    box-shadow: 0 0 30px rgba(255, 82, 82, 0.1);
}
.toast-tech.warning {
    border-color: var(--tech-yellow);
    box-shadow: 0 0 30px rgba(255, 215, 64, 0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Empty State */
.empty-state-tech {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-tech .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.empty-state-tech h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.empty-state-tech p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Login */
.login-container-tech {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-primary);
}

.login-card-tech {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.login-card-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.login-logo-tech {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-tech .icon {
    font-size: 44px;
    display: block;
    margin-bottom: 8px;
}

.login-logo-tech h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo-tech p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 4px 0 0;
}

/* Input com ícone */
.input-icon-tech {
    position: relative;
}
.input-icon-tech .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.5;
}
.input-icon-tech .form-tech {
    padding-left: 44px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 12px 16px;
    }
    
    .stat-card .stat-number {
        font-size: 20px;
    }
    
    .btn-tech {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .app-header h1 {
        font-size: 16px;
    }
}

@media (min-width: 481px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        background: var(--bg-primary);
    }
    
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Animações */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 140, 247, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(79, 140, 247, 0.2);
    }
}

.card-tech.glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Estilos adicionais para o botão Sair discreto */

/* Divisor sutil */
.divider-sutil {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0 12px;
    opacity: 0.4;
}

/* Wrapper do logout */
.logout-wrapper {
    display: flex;
    justify-content: center;
    padding: 4px 0 2px;
}

/* Botão Sair - versão discreta */
.logout-btn-discreto {
    background: transparent;
    border: 1px solid rgba(255, 82, 82, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.logout-btn-discreto:hover {
    border-color: rgba(255, 82, 82, 0.2);
    color: var(--tech-red);
    background: rgba(255, 82, 82, 0.03);
}

.logout-btn-discreto:active {
    transform: scale(0.97);
}

.logout-btn-discreto .icon {
    font-size: 14px;
    opacity: 0.6;
}

.logout-btn-discreto:hover .icon {
    opacity: 1;
}

/* Versão ainda mais discreta para mobile */
@media (max-width: 480px) {
    .logout-btn-discreto {
        padding: 6px 16px;
        font-size: 11px;
        border-color: rgba(255, 82, 82, 0.05);
    }
    .logout-btn-discreto .icon {
        font-size: 12px;
    }
}