/* ============================================
   SPORTFULL DASHBOARD - STYLESHEET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid #1e293b;
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 2rem;
    color: white;
}

.header p {
    color: #94a3b8;
    margin-top: 0.25rem;
}

.header-right {
    text-align: right;
}

.header-right p {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding: 3rem 0;
}

/* ============================================
   STATISTICS GRID
   ============================================ */

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

.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.stat-blue .stat-header {
    color: #60a5fa;
}

.stat-red .stat-header {
    color: #f87171;
}

.stat-green .stat-header {
    color: #4ade80;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-blue .stat-value {
    color: #60a5fa;
}

.stat-red .stat-value {
    color: #f87171;
}

.stat-green .stat-value {
    color: #4ade80;
}

.stat-description {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ============================================
   ALERT
   ============================================ */

.alert {
    background: rgba(30, 58, 138, 0.5);
    border: 1px solid #1e3a8a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #60a5fa;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-text {
    color: #93c5fd;
    font-size: 0.875rem;
}

/* ============================================
   TABS
   ============================================ */

.tabs {
    display: flex;
    gap: 0.25rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: #a1e04e;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-button:hover:not(.active) {
    color: #bef264;
}

.tab-button.active {
    background: rgba(51, 65, 85, 0.5);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */

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

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* ============================================
   CHARTS
   ============================================ */

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

/* ============================================
   TABLES
   ============================================ */

.table-responsive {
    overflow-x: auto;
    border: 1px solid #334155;
    border-radius: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead {
    background: #0f172a;
}

th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid #334155;
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

tbody tr:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-alta {
    background: rgba(127, 29, 29, 0.5);
    color: #fca5a5;
    border-color: #7c2d12;
}

.badge-media {
    background: rgba(120, 53, 15, 0.5);
    color: #fed7aa;
    border-color: #92400e;
}

.badge-baixa {
    background: rgba(20, 83, 45, 0.5);
    color: #86efac;
    border-color: #166534;
}

/* ============================================
   SUMMARY SECTION
   ============================================ */

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

.summary-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-list {
    list-style: none;
}

.summary-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.summary-list strong {
    color: #4ade80;
    min-width: 1.5rem;
    text-align: center;
}

.summary-list.critical strong {
    color: #f87171;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid #334155;
    padding: 2rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-right {
        text-align: left;
    }

    .header h1 {
        font-size: 1.5rem;
    }

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

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 45%;
    }

    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .tab-button {
        flex: 1 1 100%;
        font-size: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
    }

    table {
        font-size: 0.65rem;
    }

    th, td {
        padding: 0.5rem;
    }
}
