@import url('theme.css');
@import url('components.css');
@import url('animations.css');

/* === SCREEN CONTAINER === */
#app {
    min-height: 100vh;
}

.screen {
    display: none;
    padding-top: var(--gap-lg);
    padding-bottom: var(--gap-lg);
}

.screen.active {
    display: block;
}

/* === SCREEN-SPECIFIC === */

/* Server detail hero */
.detail-hero {
    text-align: center;
    padding: var(--gap-xl) 0;
}

.detail-hero .detail-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-hero .detail-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 14px;
}

.detail-hero .detail-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.detail-hero .detail-progress {
    max-width: 240px;
    margin: 12px auto 0;
}

/* Detail actions */
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-top: var(--gap-xl);
}

.detail-actions .btn-block {
    width: 100%;
}

/* Form screen */
.form-step {
    display: none;
    animation: fadeSlideUp 0.3s ease;
}

.form-step.active {
    display: block;
}

.form-step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-step-sub {
    font-size: 13px;
    color: var(--tg-hint);
    margin-bottom: var(--gap-xl);
}

/* Stats screen */
.stats-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-bottom: var(--gap-xl);
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--gap-lg);
}

.stats-card .stats-amount {
    font-size: 22px;
    font-weight: 700;
}

.stats-card .stats-label {
    font-size: 12px;
    color: var(--tg-hint);
    margin-top: 2px;
}

.stats-card .stats-detail {
    font-size: 12px;
    color: var(--tg-hint);
    margin-top: 6px;
    line-height: 1.4;
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: var(--gap);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--tg-hint);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Donut chart colors */
.donut-color-0 { background: #6c9fff; }
.donut-color-1 { background: #f472b6; }
.donut-color-2 { background: #facc15; }
.donut-color-3 { background: #4ade80; }
.donut-color-4 { background: #fb923c; }
.donut-color-5 { background: #a78bfa; }
.donut-color-6 { background: #f87171; }
.donut-color-7 { background: #22d3ee; }

.bar-color-0 .bar-fill { background: #6c9fff; }
.bar-color-1 .bar-fill { background: #f472b6; }
.bar-color-2 .bar-fill { background: #facc15; }
.bar-color-3 .bar-fill { background: #4ade80; }
.bar-color-4 .bar-fill { background: #fb923c; }
.bar-color-5 .bar-fill { background: #a78bfa; }
.bar-color-6 .bar-fill { background: #f87171; }
.bar-color-7 .bar-fill { background: #22d3ee; }
