@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #00897b;
    --primary-dark: #004d40;
    --primary-light: #4db6ac;
    --secondary: #ffb300;
    --accent: #e53935;
    --bg: #f0f4f3;
    --white: #ffffff;
    --text: #263238;
    --text-light: #78909c;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .subtitle {
        margin-bottom: 1.5rem;
    }

    .table-card {
        border-radius: 12px;
    }

    th,
    td {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .stats-row {
        gap: 1rem;
    }

    .stat-box {
        padding: 1.2rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .logo-brand {
        font-size: 1rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .hide-mobile {
        display: none;
    }
}

/* Header */
.main-header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Containers */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
}

input,
select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #eaeff2;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
select:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(77, 182, 172, 0.1);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 137, 123, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Stats */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--primary);
}

.stat-box.gold {
    border-color: var(--secondary);
}

.stat-box.red {
    border-color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Tabs */
.tab-container {
    display: flex;
    background: #e0e7e9;
    padding: 0.4rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    width: fit-content;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    border-radius: 10px;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Tables */
.table-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafb;
    padding: 1.2rem;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    border-bottom: 1px solid #edf2f4;
}

td {
    padding: 1.2rem;
    border-bottom: 1px solid #edf2f4;
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

/* Utilities */
.badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
}

.badge-red {
    background: #ffebee;
    color: #c62828;
}

.img-acta {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: slideUp 0.5s ease-out forwards;
}