/* TBC Bank Dashboard */

:root {
    --teal: #00C0C9;
    --green: #8EC63E;
    --emerald: #04D396;
    --pink: #FF31AC;
    --dark: #024A56;
    --sky: #1FC3F3;
    --cyan: #29B6C1;
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #eeeeee;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    padding: 30px 40px;
}

.header .logo svg {
    width: 150px;
    height: auto;
}

.header.dark {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.header.dark .logo {
    margin-bottom: 20px;
}

.header.dark .logo svg {
    width: 180px;
}

.header.dark h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.header.dark .subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 60px;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--teal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-light);
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-badge {
    display: inline-block;
    background: var(--emerald);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    width: fit-content;
}

.card.empty {
    border-top-color: #ddd;
    background: #fafafa;
}

.card.empty .card-title {
    color: var(--text-muted);
}

/* Sections */
.section {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #000;
    border-bottom: 2px solid var(--teal);
    padding-bottom: 10px;
}

/* Metrics */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid var(--teal);
}

.metric-card .label {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.metric-card .change {
    font-size: 0.95rem;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.change.positive {
    background: rgba(4, 211, 150, 0.15);
    color: var(--emerald);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(0, 192, 201, 0.1);
    font-weight: 600;
    color: #000;
    font-size: 0.8rem;
    text-transform: uppercase;
}

tr:hover {
    background: rgba(0, 192, 201, 0.05);
}

.number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Badges */
.version-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

.badge-uz {
    background: rgba(31, 195, 243, 0.2);
    color: #000;
}

.badge-ru {
    background: rgba(255, 49, 172, 0.15);
    color: #000;
}

/* Growth Indicators */
.growth-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.growth-indicator.up {
    color: var(--emerald);
}

.growth-indicator.down {
    color: var(--pink);
}

/* Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    background: rgba(0, 192, 201, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
}

.summary-item h4 {
    color: #000;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 20px;
    }
    .container {
        padding: 20px;
    }
    .section {
        padding: 20px;
    }
}
