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

body {
    font-family: var(--font-body);
    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

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

.dashboard-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-hero);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--md-sys-color-primary) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(100, 181, 246, 0.3);
}

.dashboard-header .subtitle {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

/* ---------- Карточка с Liquid Glass ---------- */
.progress-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(100, 181, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(206, 147, 216, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(77, 208, 225, 0.04) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    animation: liquidShift 8s ease-in-out infinite;
}

@keyframes liquidShift {
    0%, 100% { 
        opacity: 0.6;
    }
    50% { 
        opacity: 1;
    }
}

.progress-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-color: rgba(100, 181, 246, 0.3);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.1) inset,
        var(--glow-primary);
}

.progress-card:hover::before {
    opacity: 1;
}


.progress-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.progress-card .project-name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--md-sys-color-on-surface);
    letter-spacing: -0.3px;
    flex: 1;
    min-width: 0;
}

.progress-card .project-type {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.type-monitoring {
    background: rgba(100, 181, 246, 0.15);
    color: var(--md-sys-color-primary);
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.type-infra {
    background: rgba(255, 151, 51, 0.15);
    color: #FF9733;
    border: 1px solid rgba(255, 151, 51, 0.3);
}

.type-product {
    background: rgba(206, 147, 216, 0.15);
    color: var(--md-sys-color-tertiary);
    border: 1px solid rgba(206, 147, 216, 0.3);
}

.type-tool {
    background: rgba(77, 208, 225, 0.15);
    color: var(--md-sys-color-secondary);
    border: 1px solid rgba(77, 208, 225, 0.3);
}

.type-ml {
    background: rgba(105, 240, 174, 0.15);
    color: var(--md-sys-color-success);
    border: 1px solid rgba(105, 240, 174, 0.3);
}

.progress-bar-container {
    margin: 1rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--md-sys-color-on-surface-variant);
}

.progress-percent {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--md-sys-color-primary);
}

.progress-bar {
    height: 6px;
    background: var(--md-sys-color-surface-container-high);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.progress-fill.high {
    background: var(--md-sys-color-success);
    box-shadow: 0 0 10px var(--md-sys-color-success);
}

.progress-fill.medium {
    background: var(--md-sys-color-warning);
    box-shadow: 0 0 10px var(--md-sys-color-warning);
}

.progress-fill.low {
    background: var(--md-sys-color-error);
    box-shadow: 0 0 10px var(--md-sys-color-error);
}

.task-list {
    margin-top: 1rem;
    border-top: 1px solid var(--md-sys-color-outline);
    padding-top: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.75rem;
    color: var(--md-sys-color-on-surface-variant);
}

.task-item .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.done { background: var(--md-sys-color-success); }
.status-dot.progress { background: var(--md-sys-color-warning); }
.status-dot.todo { background: var(--md-sys-color-outline); }

.kanban-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.kanban-column {
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--border-radius-md);
    padding: 1rem;
}

.kanban-column h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--md-sys-color-outline);
}

.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

[data-theme="light"] .progress-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .progress-card:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(21, 101, 192, 0.3);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(21, 101, 192, 0.1) inset;
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    .progress-grid { grid-template-columns: 1fr; }
    .kanban-grid { grid-template-columns: 1fr; }
    .dashboard-header h1 { font-size: 1.5rem; }
}
