/* ===== DASHBOARD BASE STYLES ===== */
/* Базовые стили для всех страниц дашборда */

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
.dashboard-body {
    background: var(--bg-dashboard);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.dashboard-content {
    margin-left: 280px !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.page-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-dashboard);
}

/* ===== КАРТОЧКИ ===== */
.dashboard-card {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card .card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* ===== МЕТРИКИ ===== */
.metric-card {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.metric-change {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-change.positive { color: var(--success); }
.metric-change.negative { color: var(--danger); }

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.metric-content { flex: 1; }

.metric-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.welcome-content { flex: 1; }
.welcome-actions { flex-shrink: 0; }

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.system-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.system-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.system-info-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.system-info-text { flex: 1; }

.system-info-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.system-info-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== УТИЛИТЫ ===== */
.bg-gradient-primary { background: var(--primary) !important; }
.bg-gradient-success { background: var(--success) !important; }
.bg-gradient-warning { background: var(--warning) !important; }
.bg-gradient-danger { background: var(--danger) !important; }
.bg-gradient-info { background: var(--info) !important; }



/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991px) {
    .dashboard-content { margin-left: 0 !important; }
    .page-content { padding: 1rem 1.25rem 1.25rem 1.25rem; }
}

@media (max-width: 768px) {
    .page-content { padding: 0.75rem 1rem; }
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .welcome-title { font-size: 1.5rem; }
    .system-info { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    .metric-card { padding: 1.25rem; }
    .metric-value { font-size: 1.75rem; }
    
    /* Уменьшенные эффекты hover для очень маленьких экранов */
    .dashboard-card:hover,
    .metric-card:hover,
    .welcome-section:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    }
} 