/* ===============================================
   EB TOOL TRACK - CSS Completo
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Exo+2:wght@400;500;600;700&display=swap');

/* ===============================================
   VARIÁVEIS CSS
   =============================================== */
:root {
    --primary-dark: #0a0e1a;
    --secondary-dark: #1a1f35;
    --card-dark: #1f2640;
    --text-light: #e8f0ff;
    --text-muted: #a0aec0;
    --accent-orange: #ff6b35;
    --accent-cyan: #00d4ff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --font-title: 'Rajdhani', sans-serif;
    --font-body: 'Exo 2', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* ===============================================
   RESET E BASE
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    background-image:
        linear-gradient(rgba(10, 14, 26, 0.92), rgba(10, 14, 26, 0.92)),
        repeating-linear-gradient(
            0deg,
            rgba(0, 212, 255, 0.03) 0px,
            rgba(0, 212, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 212, 255, 0.03) 0px,
            rgba(0, 212, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    background-size: cover, 20px 20px, 20px 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise"/></filter></defs><rect width="1200" height="600" fill="%230a0e1a"/><path d="M300,300 Q400,250 500,300 T700,300" stroke="rgba(0,212,255,0.08)" stroke-width="2" fill="none" filter="url(%23noise)"/></svg>');
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* ===============================================
   HEADERS E TITULOS
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===============================================
   LOGIN PAGE
   =============================================== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 20px;
}

.login-card {
    background: linear-gradient(135deg, var(--card-dark) 0%, rgba(31, 38, 64, 0.8) 100%);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 50px 40px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.6s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder {
    color: rgba(224, 240, 255, 0.5);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff5722 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, rgba(26, 31, 53, 0.8) 100%);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

/* ===============================================
   HEADER FIXO
   =============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(90deg, var(--card-dark) 0%, rgba(31, 38, 64, 0.9) 100%);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo h1 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin: 0;
}

.header-logo span {
    font-size: 0.8rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-clock {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--accent-cyan);
    min-width: 120px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border-left: 2px solid rgba(0, 212, 255, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===============================================
   SIDEBAR DE NAVEGAÇÃO
   =============================================== */













/* ===============================================
   MAIN CONTENT
   =============================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title h2 {
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 15px;
}

/* ===============================================
   CARDS E LAYOUTS
   =============================================== */
.card {
    background: linear-gradient(135deg, var(--card-dark) 0%, rgba(31, 38, 64, 0.8) 100%);
    border: 2px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
    transform: translateY(-5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(31, 38, 64, 0.6) 0%, rgba(26, 31, 53, 0.6) 100%);
    border: 2px solid;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.stat-card.stat-success {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card.stat-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-card.stat-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.stat-card.stat-info {
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-title);
}

.stat-card.stat-success .stat-number { color: var(--success); }
.stat-card.stat-warning .stat-number { color: var(--warning); }
.stat-card.stat-danger .stat-number { color: var(--danger); }
.stat-card.stat-info .stat-number { color: var(--info); }

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================================
   TABELAS
   =============================================== */

thead {
    background-color: rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-light);
}

tbody tr:hover {
    background-color: rgba(0, 212, 255, 0.08);
}

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

/* ===============================================
   BADGES DE STATUS
   =============================================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-title);
}

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

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===============================================
   MODAL
   =============================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: linear-gradient(135deg, var(--card-dark) 0%, rgba(31, 38, 64, 0.9) 100%);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding-bottom: 15px;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-orange);
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===============================================
   ALERTAS
   =============================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInUp 0.3s ease-out;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    font-size: 1.3rem;
    margin-left: auto;
    transition: var(--transition-fast);
}

.alert-close:hover {
    opacity: 0.7;
}

/* ===============================================
   UPLOAD ÁREA
   =============================================== */
.upload-area {
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: rgba(0, 212, 255, 0.05);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.upload-text {
    color: var(--text-muted);
}

.upload-area input[type="file"] {
    display: none;
}

/* ===============================================
   GALERIA DE FOTOS
   =============================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(0, 212, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===============================================
   SEARCH E FILTER
   =============================================== */
.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(224, 240, 255, 0.5);
}

/* ===============================================
   RESPONSIVO
   =============================================== */
@media (max-width: 1024px) {
    

    

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    

    

    

    .header {
        padding: 0 15px;
    }

    .header-right {
        gap: 15px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
        padding: 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }

    .header-right {
        width: 100%;
        margin-top: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .search-input {
        min-width: 100%;
    }
}

/* ===============================================
   SCROLLBAR CUSTOMIZADO
   =============================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-orange) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-cyan) 100%);
}

/* ===============================================
   UTILITÁRIOS
   =============================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; }
.gap-15 { gap: 15px; }

/* ========== LAYOUT FIX ========== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    flex-shrink: 0;
    width: 100%;
    z-index: 1000;
}



/* ========== LAYOUT FIX FINAL ========== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    flex-shrink: 0;
    width: 100%;
    z-index: 1000;
}



.main-container {
    margin-left: 220px;
    margin-top: 60px;
    padding: 24px;
    min-width: 0;
    overflow-x: hidden;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    table-layout: auto;
}

/* ========== SIDEBAR MELHORADO ========== */
.sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-item {
    margin: 0;
    padding: 0;
    list-style: none;
}







.sidebar-icon {
    min-width: 16px;
    display: inline-block;
}


.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    flex-direction: column;
    text-align: center;
}

.sidebar-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.sidebar-link.active {
    background: rgba(0, 212, 255, 0.15);
    border-left-color: var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 600;
}

.sidebar-icon {
    min-width: 16px;
    display: inline-block;
}
