:root {
    --bg-dark: #0a0b10;
    --sidebar-bg: rgba(16, 18, 27, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #7c3aed;
    --accent-secondary: #3b82f6;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --card-hover: rgba(124, 58, 237, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
}

/* App Layout */
#app-container {
    display: flex;
    height: 100vh;
    background: radial-gradient(circle at 50% -20%, #1e1b4b 0%, #0a0b10 100%);
}

/* Sidebar */
#sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.logo span {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex-grow: 1;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.nav-item:hover, .nav-item.active {
    background: var(--glass-bg);
    color: white;
}

.nav-item.active i {
    color: var(--accent-primary);
}

.nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

/* Main Workspace */
#main-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#top-bar {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 400px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

/* Content Area */
#content-area {
    padding: 0 3rem 3rem 3rem;
}

.view-header {
    margin-bottom: 2.5rem;
}

.view-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.view-header p {
    color: var(--text-muted);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit';
}

/* Project Grid */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: var(--card-hover);
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Detail View Styles */
#view-calendar-detail {
    animation: fadeIn 0.4s ease-out;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-back {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.project-info h2 {
    font-size: 1.8rem;
}

.badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--accent-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Tab System */
.tab-system {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Post Cards */
.calendar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card.glass {
    background: rgba(255, 100, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

.post-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: white;
}

.post-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.post-visual {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border-left: 3px solid var(--accent-primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utils */
.hidden { display: none !important; }
.block { display: block !important; }

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state i {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}
/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content h2 { margin-bottom: 0.5rem; }
.modal-content p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }

.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.8rem; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.option-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.option-card:hover { background: rgba(255, 255, 255, 0.05); }
.option-card.active { border-color: var(--accent-primary); background: rgba(124, 58, 237, 0.1); }

.mock-ui { width: 100%; height: 60px; border-radius: 8px; }
.bg-glass { background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.1); }
.bg-minimal { background: #111; border: 1px solid #333; }
.bg-neon { background: #000; border: 1px solid #ff00ff; box-shadow: 0 0 10px #00ffff inset; }
.bg-corp { background: #f8fafc; border: 1px solid #e2e8f0; }

.color-picker-grid {
    display: flex;
    gap: 1rem;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    transition: transform 0.2s;
}

.color-btn.active { transform: scale(1.2); border-color: white; box-shadow: 0 0 15px var(--c1); }

.modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }

/* THEMES */
/* Minimal */
.theme-minimal {
    --glass-bg: #111;
    --glass-border: #333;
    --card-hover: #1a1a1a;
}
.theme-minimal .glass { backdrop-filter: none; box-shadow: none; border-radius: 0; }
.theme-minimal .project-card, .theme-minimal .post-card { border-radius: 4px; }

/* Neon Cyberpunk */
.theme-neon {
    --bg-dark: #050510;
    --glass-bg: rgba(20, 0, 40, 0.5);
    --glass-border: rgba(255, 0, 255, 0.3);
    --card-hover: rgba(0, 255, 255, 0.1);
}
.theme-neon h1, .theme-neon h2, .theme-neon h3 { text-shadow: 0 0 10px var(--accent-primary); }
.theme-neon .project-card, .theme-neon .post-card { box-shadow: 0 0 15px rgba(255, 0, 255, 0.1); }
.theme-neon .project-card:hover { box-shadow: 0 0 25px var(--accent-secondary); }

/* Corporate Light */
.theme-corporate {
    --bg-dark: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --card-hover: #f1f5f9;
}
.theme-corporate #app-container { background: #f8fafc; }
.theme-corporate .glass { border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.theme-corporate .nav-item { color: var(--text-muted); }
.theme-corporate .nav-item:hover, .theme-corporate .nav-item.active { background: #e2e8f0; color: #0f172a; }
.theme-corporate .search-bar input { color: #0f172a; }

