:root,
[data-theme='default'] {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --blob-1: #8b5cf6;
    --blob-2: #3b82f6;
    --metric-fill-1: rgba(59, 130, 246, 0.4);
    --metric-fill-2: rgba(139, 92, 246, 0.1);
}

[data-theme='devops-it'] {
    --bg-color: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --glass-bg: rgba(38, 38, 38, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #f97316;
    /* оранжевый фирменный цвет */
    --primary-hover: #ea580c;
    --blob-1: #f97316;
    --blob-2: #c2410c;
    /* темный оттенок красного-оранжевого */
    --metric-fill-1: rgba(249, 115, 22, 0.4);
    --metric-fill-2: rgba(249, 115, 22, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Animated Blobs */
.background {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: drift 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.blob1 {
    width: 400px;
    height: 400px;
    background-color: var(--blob-1);
    top: 10%;
    left: 20%;
}

.blob2 {
    width: 500px;
    height: 500px;
    background-color: var(--blob-2);
    bottom: 10%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, -50px) scale(1.1);
    }
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.glass-light {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Client Info */
.client-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    gap: 30px;
    margin-bottom: 10px;
    text-align: center;
}

.divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.info-card .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-card .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.metric {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--metric-fill-1) 0%, var(--metric-fill-2) 100%);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: 16px;
}

.metric-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

.metric h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric .value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.metric .value small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    align-self: center;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Progress */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--blob-1), var(--primary));
    transition: width 0.2s ease;
}

.status-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -10px;
}

footer {
    position: absolute;
    bottom: 24px;
    padding: 16px 32px;
    text-align: center;
    color: var(--text-secondary);
    width: 90%;
    max-width: 800px;
    font-size: 0.9rem;
    z-index: 10;
}

.hidden {
    display: none !important;
}

.text-error {
    color: #ef4444 !important;
}

.progress-error {
    background: #ef4444 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .metrics {
        grid-template-columns: 1fr;
    }

    .client-info {
        flex-direction: column;
        gap: 15px;
    }

    .divider {
        width: 80%;
        height: 1px;
    }

    header h1 {
        font-size: 2.2rem;
    }
}