/* Command Center Theme - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1321;
    --bg-card: rgba(17, 24, 39, 0.8);
    --border: rgba(30, 41, 59, 0.5);
    --cyan: #06d6e0;
    --cyan-dim: #0891b2;
    --blue: #3b82f6;
    --green: #10b981;
    --green-bright: #34d399;
    --amber: #f59e0b;
    --red: #ef4444;
    --purple: #a855f7;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Heebo', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(rgba(6, 214, 224, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 214, 224, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    direction: rtl;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

/* ===== PAGE HEADER ===== */
.cc-page-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-page-header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cc-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 18px;
}

.cc-back-btn:hover { color: var(--cyan); background: rgba(6, 214, 224, 0.08); }

.cc-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-page-title .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cc-page-title .icon-box.cyan { background: rgba(6, 214, 224, 0.1); border: 1px solid rgba(6, 214, 224, 0.3); }
.cc-page-title .icon-box.blue { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); }
.cc-page-title .icon-box.green { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.cc-page-title .icon-box.purple { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.3); }
.cc-page-title .icon-box.amber { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }

.cc-page-title h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--cyan);
    text-transform: uppercase;
}

.cc-page-title .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* ===== CONTENT AREA ===== */
.cc-content { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }

/* ===== STAT CARDS ===== */
.cc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cc-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    padding: 16px;
    transition: all 0.3s;
    box-shadow: 0 0 1px rgba(6, 214, 224, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cc-stat-card:hover { border-color: rgba(6, 214, 224, 0.2); }

.cc-stat-card .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 16px;
}

.cc-stat-card .stat-icon.cyan { background: rgba(6, 214, 224, 0.1); border: 1px solid rgba(6, 214, 224, 0.3); }
.cc-stat-card .stat-icon.blue { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); }
.cc-stat-card .stat-icon.green { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.cc-stat-card .stat-icon.purple { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.3); }
.cc-stat-card .stat-icon.amber { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.cc-stat-card .stat-icon.red { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }

.cc-stat-card .stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cc-stat-card .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 20px currentColor;
}

.cc-stat-card .stat-value.cyan { color: var(--cyan); }
.cc-stat-card .stat-value.blue { color: var(--blue); }
.cc-stat-card .stat-value.green { color: var(--green); }
.cc-stat-card .stat-value.purple { color: var(--purple); }
.cc-stat-card .stat-value.amber { color: var(--amber); }
.cc-stat-card .stat-value.red { color: var(--red); }

/* ===== FILTER BAR ===== */
.cc-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cc-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.cc-filter-btn:hover {
    border-color: rgba(6, 214, 224, 0.3);
    color: var(--cyan);
    background: rgba(6, 214, 224, 0.05);
}

.cc-filter-btn.active {
    background: rgba(6, 214, 224, 0.15);
    color: var(--cyan);
    border-color: rgba(6, 214, 224, 0.4);
}

/* ===== CARDS ===== */
.cc-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 1px rgba(6, 214, 224, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
}

.cc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(6, 214, 224, 0.05) 0%, transparent 100%);
}

.cc-card-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-card-body {
    padding: 12px;
    max-height: 600px;
    overflow-y: auto;
}

/* ===== LIST ITEMS ===== */
.cc-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.3);
    transition: background 0.2s;
}

.cc-list-item:last-child { border-bottom: none; }
.cc-list-item:hover { background: rgba(30, 41, 59, 0.3); }
.cc-list-item.unread { background: rgba(6, 214, 224, 0.03); }

.cc-list-item .item-indicator {
    width: 3px;
    height: 28px;
    border-radius: 2px;
    flex-shrink: 0;
}

.cc-list-item .item-indicator.cyan { background: var(--cyan); box-shadow: 0 0 6px rgba(6, 214, 224, 0.4); }
.cc-list-item .item-indicator.blue { background: var(--blue); box-shadow: 0 0 6px rgba(59, 130, 246, 0.4); }
.cc-list-item .item-indicator.green { background: var(--green); box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.cc-list-item .item-indicator.amber { background: var(--amber); box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.cc-list-item .item-indicator.red { background: var(--red); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.cc-list-item .item-indicator.purple { background: var(--purple); box-shadow: 0 0 6px rgba(168, 85, 247, 0.4); }

.cc-list-item .item-content { flex: 1; min-width: 0; }

.cc-list-item .item-title {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-list-item .item-title.bold { font-weight: 600; }

.cc-list-item .item-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ===== BADGES ===== */
.cc-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.cc-badge.cyan { background: rgba(6, 214, 224, 0.15); color: var(--cyan); border: 1px solid rgba(6, 214, 224, 0.3); }
.cc-badge.green { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.cc-badge.amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.cc-badge.purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.cc-badge.red { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.cc-badge.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.3); }

/* ===== BUTTONS ===== */
.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid rgba(6, 214, 224, 0.3);
    background: rgba(6, 214, 224, 0.1);
    color: var(--cyan);
    letter-spacing: 1px;
}

.cc-btn:hover {
    background: rgba(6, 214, 224, 0.2);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(6, 214, 224, 0.2);
}

/* ===== INPUT ===== */
.cc-input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: 'Heebo', sans-serif;
    transition: border-color 0.2s;
}

.cc-input::placeholder { color: var(--text-dim); }
.cc-input:focus { outline: none; border-color: rgba(6, 214, 224, 0.4); }

/* ===== GRID LAYOUTS ===== */
.cc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== LOADING / EMPTY ===== */
.cc-loading, .cc-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.cc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== CALENDAR SPECIFIC ===== */
.cc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.cc-day-header {
    text-align: center;
    padding: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.cc-day {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.3);
}

.cc-day:hover { border-color: rgba(6, 214, 224, 0.3); background: rgba(6, 214, 224, 0.05); }
.cc-day.today { border-color: var(--cyan); background: rgba(6, 214, 224, 0.1); }
.cc-day.other { color: var(--text-dim); opacity: 0.4; }
.cc-day .day-num { font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.cc-day .day-dots { display: flex; gap: 2px; }
.cc-day-dot { width: 5px; height: 5px; border-radius: 50%; }

.cc-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cc-month-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan);
}

.cc-month-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: 13px;
    transition: all 0.2s;
}

.cc-month-btn:hover { border-color: rgba(6, 214, 224, 0.3); color: var(--cyan); }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up 0.4s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cc-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cc-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cc-content { padding: 12px; }
    .cc-page-header { padding: 10px 12px; }
    .cc-stat-card .stat-value { font-size: 22px; }
    .cc-stats-grid { gap: 8px; }
    .cc-page-title h1 { font-size: 12px; letter-spacing: 2px; }
    .cc-calendar-grid { gap: 2px; }
    .cc-day { padding: 4px; font-size: 11px; }
}
