
/* ═══════════════════════════════════════════════════════════════
   DailyCommand.razor — فرماندهی روزانه | Full Styles
   ═══════════════════════════════════════════════════════════════ */

.dc-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px 120px;
    font-family: 'Vazirmatn','IRANSans','Tahoma',sans-serif;
}

/* ═══════════ HUD Header ═══════════ */
.dc-hud {
    background: linear-gradient(135deg, #4A1D6A 0%, #6C3FA0 40%, #1A237E 100%);
    border-radius: 24px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(108,63,160,0.25);
    flex-wrap: wrap;
    min-height: 88px;
}
.dc-hud-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.dc-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; color: #FFF;
    border: 2px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.dc-hud-user { display: flex; flex-direction: column; gap: 2px; }
.dc-hud-name { font-size: 0.95rem; font-weight: 700; color: #FFF; }
.dc-hud-level {
    font-size: 0.7rem; font-weight: 600; color: #FFD700;
    background: rgba(255,215,0,0.15); padding: 2px 10px; border-radius: 12px;
    display: inline-block; width: fit-content;
}
.dc-hud-center { flex: 1; min-width: 200px; }
.dc-xp-bar-wrapper { display: flex; flex-direction: column; gap: 5px; }
.dc-xp-bar {
    height: 10px; border-radius: 6px;
    background: rgba(255,255,255,0.15);
    overflow: hidden;
}
.dc-xp-fill {
    height: 100%; border-radius: 6px;
    background: linear-gradient(90deg, #FFD700 0%, #FFB347 50%, #FF8C00 100%);
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(255,179,71,0.4);
}
.dc-xp-text { font-size: 0.7rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.dc-hud-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.dc-hud-stat {
    display: flex; flex-direction: column; align-items: center;
    gap: 1px; min-width: 50px;
}
.dc-hud-stat-icon { font-size: 1.1rem; }
.dc-hud-stat-val { font-size: 0.9rem; font-weight: 800; color: #FFF; }
.dc-hud-stat-lbl { font-size: 0.6rem; color: rgba(255,255,255,0.6); }
.dc-hud-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
    .dc-hud { padding: 12px 14px; gap: 10px; border-radius: 18px; }
    .dc-hud-center { order: 3; flex: 1 1 100%; min-width: unset; }
    .dc-avatar { width: 38px; height: 38px; font-size: 1rem; }
    .dc-hud-name { font-size: 0.8rem; }
    .dc-hud-stat { min-width: 40px; }
    .dc-hud-stat-val { font-size: 0.75rem; }
    .dc-hud-stat-lbl { display: none; }
}

/* ═══════════ AI Hero Card ═══════════ */
.dc-ai-hero {
    position: relative;
    background: var(--mud-palette-surface, #FFF);
    border-radius: 24px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 4px 24px rgba(108,99,255,0.08), 0 1px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
}
.dc-ai-hero::before {
    content: '';
    position: absolute; inset: -2px; border-radius: 26px;
    background: linear-gradient(135deg, #6C63FF 0%, #7B2CBF 40%, #A0D2EB 100%);
    z-index: -1;
}
.dc-ai-hero-glow {
    position: absolute; top: -30px; right: 40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.dc-ai-hero-content { display: flex; gap: 16px; align-items: flex-start; position: relative; z-index: 1; }
.dc-ai-hero-icon-wrap { flex-shrink: 0; }
.dc-ai-hero-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(108,99,255,0.15);
}
.dc-ai-hero-body { flex: 1; min-width: 0; }
.dc-ai-hero-text {
    font-size: 0.88rem; line-height: 1.9;
    color: var(--mud-palette-text-primary, #1E293B);
    margin: 0 0 12px;
}
.dc-ai-hero-text strong { color: #6C63FF; }
.dc-ai-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dc-btn-purple {
    background: linear-gradient(135deg, #6C63FF, #7B2CBF) !important;
    color: #FFF !important; border-radius: 14px !important; font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(108,99,255,0.3) !important;
}
.dc-btn-blue {
    border-color: #A0D2EB !important; color: #4A90D9 !important;
    border-radius: 14px !important; font-weight: 600 !important;
}
.dc-btn-gold {
    color: #E67E22 !important; font-weight: 600 !important;
}

@media (max-width: 768px) {
    .dc-ai-hero { padding: 14px 16px; border-radius: 18px; }
    .dc-ai-hero-content { flex-direction: column; align-items: center; text-align: center; }
    .dc-ai-hero-text { font-size: 0.8rem; }
    .dc-ai-hero-actions { justify-content: center; }
}

/* ═══════════ Main Grid (Timeline + Consult) ═══════════ */
.dc-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}
@media (max-width: 960px) {
    .dc-main-grid { grid-template-columns: 1fr; }
}

/* Section titles */
.dc-section-title {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.dc-section-title h2 {
    font-size: 1.15rem; font-weight: 800;
    color: var(--mud-palette-text-primary, #1E293B); margin: 0;
}
.dc-section-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dc-dot-purple { background: #6C63FF; box-shadow: 0 0 8px rgba(108,99,255,0.5); }
.dc-dot-blue { background: #A0D2EB; box-shadow: 0 0 8px rgba(160,210,235,0.5); }
.dc-dot-gold { background: #FFB347; box-shadow: 0 0 8px rgba(255,179,71,0.5); }

/* ── Timeline ── */
.dc-timeline-col { min-width: 0; }
.dc-timeline { display: flex; flex-direction: column; gap: 8px; }

.dc-task-card {
    background: var(--mud-palette-surface, #FFF);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid var(--mud-palette-divider, #E8ECF0);
    transition: transform 0.15s, box-shadow 0.15s;
}
.dc-task-card:hover { transform: translateX(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.dc-task-urgent { border-right: 3px solid #EF4444; }

.dc-task-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.dc-task-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.dc-task-review { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.dc-task-practice { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.dc-task-exam { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }

.dc-task-body { flex: 1; min-width: 0; }
.dc-task-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.dc-task-title { font-size: 0.85rem; font-weight: 700; color: var(--mud-palette-text-primary, #1E293B); }
.dc-task-badge-urgent {
    font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 8px;
    background: #FEE2E2; color: #DC2626;
}
.dc-task-badge-suggested {
    font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 8px;
    background: #DBEAFE; color: #2563EB;
}
.dc-task-meta { display: flex; gap: 10px; font-size: 0.7rem; color: var(--mud-palette-text-secondary, #64748B); flex-wrap: wrap; }
.dc-task-consult-btn {
    color: #6C63FF !important; font-size: 0.72rem !important; flex-shrink: 0;
    border-radius: 12px !important;
}

.dc-btn-launch {
    margin-top: 14px; border-radius: 18px !important; height: 52px !important;
    font-size: 1rem !important; font-weight: 800 !important;
    background: linear-gradient(135deg, #6C63FF, #7B2CBF) !important;
    color: #FFF !important;
    box-shadow: 0 8px 28px rgba(108,99,255,0.35) !important;
    letter-spacing: 0.5px;
}

/* ── Consult Panel ── */
.dc-consult-panel {
    background: var(--mud-palette-surface, #FFF);
    border-radius: 20px; border: 1px solid var(--mud-palette-divider, #E8ECF0);
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
    display: flex; flex-direction: column;
    position: sticky; top: 20px;
    max-height: calc(100vh - 100px);
}
.dc-consult-header { padding: 16px 18px 10px; }
.dc-consult-title-row { display: flex; align-items: center; gap: 8px; }
.dc-consult-title-row h3 { font-size: 1rem; font-weight: 800; color: var(--mud-palette-text-primary, #1E293B); margin: 0; }
.dc-consult-sub { font-size: 0.72rem; color: var(--mud-palette-text-secondary, #94A3B8); margin-right: 16px; }

.dc-consult-chat {
    flex: 1; overflow-y: auto; padding: 8px 16px;
    display: flex; flex-direction: column; gap: 10px; min-height: 180px; max-height: 280px;
}

.dc-chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.dc-chat-user { flex-direction: row-reverse; }
.dc-chat-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    background: #F0F0FF;
}
.dc-chat-ai .dc-chat-avatar { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.dc-chat-bubble {
    max-width: 82%; padding: 8px 12px; border-radius: 14px;
    font-size: 0.76rem; line-height: 1.7;
}
.dc-chat-ai .dc-chat-bubble {
    background: #F5F3FF; color: var(--mud-palette-text-primary, #1E293B);
    border-bottom-right-radius: 4px;
}
.dc-chat-user .dc-chat-bubble {
    background: linear-gradient(135deg, #6C63FF, #7B2CBF);
    color: #FFF; border-bottom-left-radius: 4px;
}
.dc-chat-typing { display: flex; align-items: center; gap: 4px; padding: 12px 16px; }
.dc-chat-typing .dc-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #A0A0C0;
    animation: dcBounce 1.4s infinite ease-in-out both;
}
.dc-chat-typing .dc-dot:nth-child(1) { animation-delay: -0.32s; }
.dc-chat-typing .dc-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes dcBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.dc-consult-input-row { padding: 8px 16px 0; flex-shrink: 0; }
.dc-consult-input .mud-input-outlined-border { border-radius: 14px !important; }

.dc-consult-chips {
    display: flex; gap: 6px; padding: 10px 16px 14px; flex-shrink: 0; flex-wrap: wrap;
}
.dc-chip-quick {
    background: #F5F3FF !important; color: #6C63FF !important;
    font-size: 0.68rem !important; border-radius: 10px !important;
    cursor: pointer !important; font-weight: 500 !important;
}
.dc-chip-quick:hover { background: #EDE9FE !important; }

/* ═══════════ Challenge Section ═══════════ */
.dc-challenge {
    position: relative;
    background: var(--mud-palette-surface, #FFF);
    border-radius: 24px; padding: 18px 22px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 4px 20px rgba(255,179,71,0.08), 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 16px;
}
.dc-challenge::before {
    content: ''; position: absolute; inset: -2px; border-radius: 26px;
    background: linear-gradient(135deg, #FFB347, #FF8C00);
    z-index: -1;
}
.dc-challenge-glow {
    position: absolute; top: -20px; left: 30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,179,71,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.dc-challenge-main { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.dc-challenge-info { flex: 1; min-width: 280px; }
.dc-challenge-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.dc-challenge-title-row h3 { font-size: 1.05rem; font-weight: 800; color: var(--mud-palette-text-primary, #1E293B); margin: 0; }
.dc-challenge-timer {
    font-size: 0.7rem; color: #DC2626; background: #FEE2E2;
    padding: 2px 10px; border-radius: 10px; font-weight: 600;
}
.dc-challenge-desc { font-size: 0.85rem; color: var(--mud-palette-text-secondary, #475569); margin: 0 0 10px; line-height: 1.7; }
.dc-challenge-reward { color: #E67E22; font-weight: 800; }
.dc-btn-orange {
    background: linear-gradient(135deg, #FFB347, #FF8C00) !important;
    color: #FFF !important; border-radius: 14px !important; font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(255,140,0,0.3) !important;
}

.dc-challenge-rivals { flex-shrink: 0; min-width: 180px; }
.dc-rivals-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--mud-palette-text-secondary, #64748B); margin-bottom: 8px; }
.dc-rivals-list { display: flex; flex-direction: column; gap: 6px; }
.dc-rival { display: flex; align-items: center; gap: 8px; }
.dc-rival-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #FFF; flex-shrink: 0;
}
.dc-rival-1 { background: linear-gradient(135deg, #6C63FF, #7B2CBF); }
.dc-rival-2 { background: linear-gradient(135deg, #4A90D9, #A0D2EB); }
.dc-rival-3 { background: linear-gradient(135deg, #FFB347, #E67E22); }
.dc-rival-name { font-size: 0.78rem; font-weight: 600; color: var(--mud-palette-text-primary, #1E293B); }
.dc-rival-gap {
    font-size: 0.68rem; font-weight: 600; margin-right: auto;
}
.dc-rival:nth-child(1) .dc-rival-gap, .dc-rival:nth-child(2) .dc-rival-gap { color: #DC2626; }
.dc-rival:nth-child(3) .dc-rival-gap { color: #10B981; }

@media (max-width: 768px) {
    .dc-challenge { padding: 14px 16px; border-radius: 18px; }
    .dc-challenge-main { flex-direction: column; }
    .dc-challenge-rivals { min-width: unset; width: 100%; }
    .dc-rivals-list { flex-direction: row; gap: 12px; }
}

/* ═══════════ FAB Button ═══════════ */
.dc-fab {
    position: fixed; bottom: 28px; right: 28px;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #6C63FF, #7B2CBF);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 100;
    box-shadow: 0 8px 30px rgba(108,99,255,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dc-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(108,99,255,0.55);
}
.dc-fab-icon { font-size: 1.5rem; }

/* ═══════════ Goal Missions Section ═══════════ */
.dc-goal-section {
    margin: 24px 0;
}

.dc-section-dot.dc-dot-gold {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.dc-goal-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.dc-mission-card {
    background: #FFF;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dc-mission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.dc-mission-critical { border-left: 4px solid #EF4444; }
.dc-mission-warning { border-left: 4px solid #F59E0B; }
.dc-mission-normal { border-left: 4px solid #3B82F6; }
.dc-mission-done { border-left: 4px solid #10B981; }

.dc-mission-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dc-mission-emoji {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 10px;
}

.dc-mission-subject-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dc-mission-subject {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1F2937;
}

.dc-mission-goal {
    font-size: 0.7rem;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-mission-mastery-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.dc-mastery-weak { background: #FEE2E2; color: #DC2626; }
.dc-mastery-medium { background: #FEF3C7; color: #D97706; }
.dc-mastery-good { background: #DBEAFE; color: #2563EB; }
.dc-mastery-great { background: #D1FAE5; color: #059669; }

.dc-mission-body { }

.dc-mission-reason {
    font-size: 0.78rem;
    color: #4B5563;
    margin: 0 0 10px;
    line-height: 1.5;
}

.dc-mission-stats {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #6B7280;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dc-mission-progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.dc-mission-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.dc-progress-red { background: #EF4444; }
.dc-progress-yellow { background: #F59E0B; }
.dc-progress-blue { background: #3B82F6; }
.dc-progress-green { background: #10B981; }

/* ═══════════ Goal Progress Section ═══════════ */
.dc-goal-progress-section {
    margin: 24px 0;
}

.dc-section-dot.dc-dot-green {
    background: linear-gradient(135deg, #10B981, #059669);
}

.dc-goal-progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.dc-goal-progress-card {
    background: #FFF;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dc-gp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dc-gp-emoji {
    font-size: 1.4rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 10px;
}

.dc-gp-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dc-gp-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1F2937;
}

.dc-gp-type {
    font-size: 0.7rem;
    color: #6B7280;
}

.dc-gp-overall {
    font-size: 1.2rem;
    font-weight: 800;
    color: #6C3FA0;
}

.dc-gp-bar-wrapper {
    margin-bottom: 8px;
}

.dc-gp-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.dc-gp-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.dc-gp-stats {
    display: flex;
    gap: 14px;
    font-size: 0.7rem;
    color: #6B7280;
    flex-wrap: wrap;
}

.dc-gp-label {
    font-weight: 600;
    color: #6C3FA0;
    margin-right: auto;
}
.dc-fab-tooltip {
    position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
    background: #1E293B; color: #FFF; font-size: 0.72rem; font-weight: 600;
    padding: 6px 14px; border-radius: 10px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.dc-fab:hover .dc-fab-tooltip { opacity: 1; }

@media (max-width: 768px) {
    .dc-fab { width: 48px; height: 48px; bottom: 20px; right: 16px; }
    .dc-fab-icon { font-size: 1.2rem; }
}

/* ═══════════ Dark Mode ═══════════ */
.mud-dark .dc-hud { background: linear-gradient(135deg, #1A0A2E 0%, #2D1B4E 40%, #0F172A 100%); }
.mud-dark .dc-ai-hero { background: var(--mud-palette-surface, #1E293B); }
.mud-dark .dc-ai-hero-text { color: var(--mud-palette-text-primary, #E2E8F0); }
.mud-dark .dc-task-card { background: var(--mud-palette-surface, #1E293B); border-color: var(--mud-palette-divider, #334155); }
.mud-dark .dc-consult-panel { background: var(--mud-palette-surface, #1E293B); border-color: var(--mud-palette-divider, #334155); }
.mud-dark .dc-challenge { background: var(--mud-palette-surface, #1E293B); }
.mud-dark .dc-chat-ai .dc-chat-bubble { background: #2D2D4A; }
.mud-dark .dc-chip-quick { background: #2D2D4A !important; }
.mud-dark .dc-btn-blue { border-color: #4A6590 !important; color: #7BAFD4 !important; }
.mud-dark .dc-fab-tooltip { background: #475569; }

/* ═══════════ Calendar Page ═══════════ */
.dc-calendar-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 4px 100px;
}

.dc-loading {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.dc-cal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.dc-cal-header h2 {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1F2937;
}

.dc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.dc-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    padding: 6px 0;
}

.dc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dc-cal-day {
    aspect-ratio: 1;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #E5E7EB;
    background: #FFF;
    min-height: 70px;
    overflow: hidden;
}

.dc-cal-day:hover {
    border-color: #6C3FA0;
    box-shadow: 0 2px 8px rgba(108,63,160,0.15);
}

.dc-day-today {
    background: linear-gradient(135deg, #F3F0FF, #EDE9FE);
    border-color: #6C3FA0;
    border-width: 2px;
}

.dc-day-done {
    background: #F0FDF4;
    border-color: #86EFAC;
}

.dc-day-has-plan {
    border-color: #C4B5FD;
}

.dc-day-past {
    opacity: 0.5;
}

.dc-day-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.dc-day-today .dc-day-num {
    color: #6C3FA0;
}

.dc-day-dots {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.dc-day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.dc-dot-done { background: #10B981; }
.dc-dot-pending { background: #F59E0B; }

.dc-day-label {
    font-size: 0.6rem;
    color: #6B7280;
    margin-top: 1px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ═══════════ Calendar Summary ═══════════ */
.dc-cal-summary {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 16px;
    flex-wrap: wrap;
}

.dc-summary-item {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dc-summary-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #6C3FA0;
}

.dc-summary-lbl {
    font-size: 0.7rem;
    color: #6B7280;
}

/* ═══════════ Day Plan Dialog ═══════════ */
.dc-dayplan {
    min-width: 320px;
}

.dc-dayplan-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dc-dp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F9FAFB;
    margin-bottom: 6px;
    border-right: 3px solid #C4B5FD;
}

.dc-dp-done {
    border-right-color: #10B981;
    background: #F0FDF4;
}

.dc-dp-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
}

.dc-dp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dc-dp-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1F2937;
}

.dc-dp-meta {
    font-size: 0.65rem;
    color: #9CA3AF;
}

.dc-dp-status {
    font-size: 1rem;
}
