﻿/* ============================================
   DonGMU.NPO — Тёмная тема
   Активна только при body.mud-theme-dark
   ============================================ */

body.mud-theme-dark {
    --dgm-bg: #0F1419;
    --dgm-surface: #1A2028;
    --dgm-border: #2A3540;
    --dgm-text-primary: #E8EAED;
    --dgm-text-secondary: #A0A8B0;
    --dgm-text-muted: #6B7280;
    --dgm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --dgm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --dgm-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
    --dgm-shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.7);
    background: var(--dgm-bg);
    color: var(--dgm-text-primary);
}

    /* Подвал */
    body.mud-theme-dark .site-footer {
        background: linear-gradient(180deg, #052918 0%, #031B10 100%);
    }

    /* Скроллбар */
    body.mud-theme-dark ::-webkit-scrollbar-thumb {
        background: #4A5563;
    }

        body.mud-theme-dark ::-webkit-scrollbar-thumb:hover {
            background: #5A6570;
        }

/* Профиль — карточки и строки */
body.mud-theme-dark .profile-info-card {
    background: var(--dgm-surface);
    border-color: var(--dgm-border);
}

body.mud-theme-dark .profile-row {
    border-color: var(--dgm-border);
}

    body.mud-theme-dark .profile-row:hover {
        background: rgba(255, 255, 255, 0.03);
    }

body.mud-theme-dark .profile-row-icon {
    background: linear-gradient(135deg, rgba(26, 127, 75, 0.25) 0%, rgba(26, 127, 75, 0.15) 100%);
    color: #4ADE80;
}

/* MudPaper в тёмной теме */
body.mud-theme-dark .mud-paper {
    background-color: var(--dgm-surface);
    color: var(--dgm-text-primary);
}

body.mud-theme-dark .mud-table-head {
    background-color: #2A3540 !important;
}

body.mud-theme-dark .mud-table-head .mud-table-cell {
    color: #A0A8B0 !important;
}

body.mud-theme-dark .user-card {
    background: var(--dgm-surface);
    border-color: var(--dgm-border);
}

body.mud-theme-dark .user-card-avatar {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.08) 100%);
    color: #4ADE80;
}

/* ============================================
Profile info card (UserDetails)
============================================ */

body.mud-theme-dark .profile-info-card {
    background: #1A2028 !important;
    border-color: #2A3540 !important;
}

body.mud-theme-dark .editable-field {
    background: #1A2028 !important;
    border-bottom-color: #2A3540 !important;
}

body.mud-theme-dark .editable-field.can-edit:hover {
    background: #1E242E !important;
}

body.mud-theme-dark .editable-field.editing {
    background: #222A34 !important;
}

body.mud-theme-dark .profile-row-icon {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.08) 100%) !important;
    color: #4ADE80 !important;
}

body.mud-theme-dark .profile-row-label {
    color: #6B7280 !important;
}

body.mud-theme-dark .profile-row-value-view {
    color: #E8EAED !important;
}

body.mud-theme-dark .profile-row-empty {
    color: #6B7280 !important;
}

body.mud-theme-dark .document-item {
    background: #222A34;
    border-color: #2A3540;
}

body.mud-theme-dark .attachment-link {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
}

body.mud-theme-dark .attachment-link:hover {
    background: rgba(74, 222, 128, 0.25);
    color: #86EFAC;
}

body.mud-theme-dark .role-badge {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    border-color: rgba(74, 222, 128, 0.3);
}

body.mud-theme-dark .file-input {
    background: #222A34;
    border-color: #2A3540;
    color: var(--dgm-text-primary);
}

body.mud-theme-dark .file-input:hover {
    border-color: #4ADE80;
}

body.mud-theme-dark .timeline-dot {
    background: #374151;
    border-color: #4B5563;
}

body.mud-theme-dark .timeline-stage.done .timeline-dot {
    background: #22C55E;
    border-color: #22C55E;
}

body.mud-theme-dark .timeline-stage.current .timeline-dot {
    background: #1A2028;
    border-color: #F2C230;
}

body.mud-theme-dark .timeline-label {
    color: #6B7280;
}

body.mud-theme-dark .timeline-stage.done .timeline-label {
    color: #4ADE80;
}

body.mud-theme-dark .timeline-stage.current .timeline-label {
    color: #E8EAED;
}

body.mud-theme-dark .timeline-connector {
    background: #374151;
}

body.mud-theme-dark .timeline-connector.done {
    background: #22C55E;
}

body.mud-theme-dark .timeline-stage.cancelled .timeline-dot {
    background: #EF4444;
    border-color: #EF4444;
}

body.mud-theme-dark .timeline-stage.cancelled .timeline-label {
    color: #F87171;
}

body.mud-theme-dark .program-summary-card {
    background: var(--dgm-surface);
    border-color: var(--dgm-border) !important;
}

body.mud-theme-dark .file-viewer-content {
    background: #0F1419;
}

body.mud-theme-dark .file-viewer-image {
    background: #1A2028;
}

body.mud-theme-dark button.attachment-link {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
}

body.mud-theme-dark button.attachment-link:hover {
    background: rgba(74, 222, 128, 0.25);
}