:root {
    --primary: #004D40;
    /* ATT Green-ish */
    --accent: #E74C3C;
    /* ATT Red-ish */
    --bg-light: #F4F6F8;
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Emboss / Neumorphic-ish Shadow */
    --shadow-emboss: 0 10px 20px rgba(0, 0, 0, 0.08), 0 2px 5px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.view-container {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.view-container.active {
    display: block;
}

/* Setup View (Drop Zone) */
#setupView {
    display: none;
    /* Changed via JS */
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
}

#setupView.active {
    display: flex;
}

.logo-img-setup {
    height: 100px;
    margin-bottom: 15px;
}

.logo-text-large {
    display: none;
}

.subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Drop Zone */
.drop-zone {
    width: 600px;
    height: 300px;
    border: 3px dashed #CBD5E0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #FAFAFA;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: #E0F2F1;
}

.drop-icon {
    font-size: 64px;
    color: #CBD5E0;
    margin-bottom: 20px;
}

.drop-zone:hover .drop-icon {
    color: var(--primary);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    /* Changed from --shadow to --card-shadow */
    margin-bottom: 24px;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-small {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-badge {
    background: #E0F2F1;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.btn-secondary {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-gray);
}

color: var(--text-gray);
}

.btn-secondary:hover {
    background: #f8f8f8;
    color: var(--text-dark);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-emboss);
    margin-bottom: 24px;
    transition: transform 0.2s;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.file-badge {
    background: #E0F2F1;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    box-shadow: var(--shadow-emboss);
    transition: box-shadow 0.2s;
}

.filter-select:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-emboss);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.kpi-icon.blue {
    background: #E3F2FD;
    color: #1565C0;
}

.kpi-icon.green {
    background: #E8F5E9;
    color: #2E7D32;
}

.kpi-icon.orange {
    background: #FFF3E0;
    color: #EF6C00;
}

.kpi-icon.purple {
    background: #F3E5F5;
    color: #7B1FA2;
}

.kpi-info {
    flex: 1;
}

.kpi-label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.kpi-value {
    margin: 0;
    font-size: 16px;
    /* Reduced to 16px as requested */
    font-weight: 700;
    white-space: nowrap;
    /* Force single line */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ellipsis if still too long */
    line-height: 1.2;
    color: var(--text-dark);
}


/* Footer Brand */
.footer-brand {
    position: absolute;
    bottom: 20px;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

/* Data Table */
.table-container {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-emboss);
    margin-top: 20px;
}

.table-scroll {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:hover {
    background: #f1f1f1;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-emboss);
    transition: transform 0.2s ease;
}

.chart-card:hover {
    transform: translateY(-3px);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
}

.chart-container-large {
    position: relative;
    height: 350px;
    width: 100%;
}

.chart-container-small {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .drop-zone {
        width: 90%;
        height: 250px;
    }
}