/**
 * 현대적인 대시보드 스타일
 * 화상영어 관리자 시스템
 */

/* ========================================
   현대적인 통계 카드
   ======================================== */

.modern-stats-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border: none;
}

.modern-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modern-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color-1, #667eea) 0%, var(--card-color-2, #764ba2) 100%);
}

/* 카드 색상 테마 */
.modern-stats-card.theme-purple::before {
    --card-color-1: #667eea;
    --card-color-2: #764ba2;
}

.modern-stats-card.theme-blue::before {
    --card-color-1: #4facfe;
    --card-color-2: #00f2fe;
}

.modern-stats-card.theme-green::before {
    --card-color-1: #43e97b;
    --card-color-2: #38f9d7;
}

.modern-stats-card.theme-orange::before {
    --card-color-1: #fa709a;
    --card-color-2: #fee140;
}

.modern-stats-card.theme-red::before {
    --card-color-1: #ff6b6b;
    --card-color-2: #feca57;
}

.modern-stats-card.theme-teal::before {
    --card-color-1: #1ABB9C;
    --card-color-2: #16a085;
}

/* 통계 카드 헤더 */
.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stats-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--card-color-1, #667eea) 0%, var(--card-color-2, #764ba2) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.theme-purple .stats-card-icon {
    --card-color-1: #667eea;
    --card-color-2: #764ba2;
}

.theme-blue .stats-card-icon {
    --card-color-1: #4facfe;
    --card-color-2: #00f2fe;
}

.theme-green .stats-card-icon {
    --card-color-1: #43e97b;
    --card-color-2: #38f9d7;
}

.theme-orange .stats-card-icon {
    --card-color-1: #fa709a;
    --card-color-2: #fee140;
}

.theme-red .stats-card-icon {
    --card-color-1: #ff6b6b;
    --card-color-2: #feca57;
}

.theme-teal .stats-card-icon {
    --card-color-1: #1ABB9C;
    --card-color-2: #16a085;
}

.stats-card-trend {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.stats-card-trend.up {
    background: #d4edda;
    color: #155724;
}

.stats-card-trend.down {
    background: #f8d7da;
    color: #721c24;
}

/* 통계 카드 본문 */
.stats-card-body {
    margin-top: 16px;
}

.stats-card-title {
    font-size: 14px;
    color: #8492a6;
    font-weight: 500;
    margin-bottom: 8px;
}

.stats-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stats-card-subtitle {
    font-size: 13px;
    color: #8492a6;
}

.stats-card-subtitle i {
    margin-right: 4px;
}

/* ========================================
   환영 섹션
   ======================================== */

.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 48px 32px;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.welcome-section .current-time {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 16px;
}

/* ========================================
   빠른 액션 버튼
   ======================================== */

.quick-action-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: none;
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quick-action-btn {
    display: block;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-btn:last-child {
    margin-bottom: 0;
}

.quick-action-btn:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    transform: translateX(4px);
    text-decoration: none;
}

.quick-action-btn i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* ========================================
   시스템 상태 인디케이터
   ======================================== */

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-indicator.status-online {
    background: #d4edda;
    color: #155724;
}

.status-indicator.status-offline {
    background: #f8d7da;
    color: #721c24;
}

.status-indicator.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #dc3545;
}

.status-dot.warning {
    background: #ffc107;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   통계 요약
   ======================================== */

.stats-summary {
    padding-top: 8px;
}

.stats-summary-item {
    padding: 12px 0;
}

.text-purple {
    color: #667eea !important;
}

.text-blue {
    color: #4facfe !important;
}

.text-green {
    color: #43e97b !important;
}

.bg-purple {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-blue {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%) !important;
}

.bg-green {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%) !important;
}

/* ========================================
   반응형
   ======================================== */

@media (max-width: 768px) {
    .modern-stats-card {
        margin-bottom: 16px;
    }

    .stats-card-value {
        font-size: 28px;
    }

    .welcome-section {
        padding: 32px 24px;
    }

    .welcome-section h1 {
        font-size: 28px;
    }

    .welcome-section p {
        font-size: 16px;
    }
}

/* ========================================
   애니메이션
   ======================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
