:root {
    --bg-color: #fcfbf8;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #ffffff;
    --accent-color: #c4a484; /* Dusty Sand/Gold */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --card-bg: #ffffff;
    --shadow: 0 4px 24px rgba(0,0,0,0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
}

.logo {
    margin-bottom: 3.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 0.3rem;
    font-weight: 700;
}

.logo span {
    font-size: 0.7rem;
    letter-spacing: 0.5rem;
    opacity: 0.6;
    display: block;
    margin-top: -0.2rem;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.nav-links li:hover {
    opacity: 1;
    background: rgba(255,255,255,0.05);
}

.nav-links li.active {
    opacity: 1;
    background: var(--accent-color);
    color: #000;
}

.nav-links i {
    width: 20px;
    margin-right: 1rem;
}

.nav-links span {
    font-size: 0.95rem;
    font-weight: 400;
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.project-info .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    opacity: 0.5;
    margin-bottom: 0.3rem;
}

.project-info .value {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

/* Main Content */
.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(252, 251, 248, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.top-nav h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Views */
.view-container {
    padding: 2rem 3rem;
    max-width: 1200px;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view.active {
    display: block;
}

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

/* Overview Section */
.hero-card {
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    background-image: url('assets/hero.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.hero-content {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    color: #fff;
    max-width: 600px;
}

.hero-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.stat-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

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

.progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 0.6rem 1rem;
    background: var(--accent-color);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    width: fit-content;
}

/* Mood Board */
.mood-board-preview h4 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 120px);
    gap: 1rem;
}

.mood-item {
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.mood-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

#mood-1 { background-image: url('assets/mood1.jpg'); }
#mood-2 { background-image: url('assets/mood2.jpg'); }
#mood-3 { background-image: url('assets/mood3.jpg'); }
#mood-4 { background-image: url('assets/mood4.jpg'); }

/* Generic Section Styles */
.section-header {
    margin-bottom: 2rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Timeline specific */
.timeline-list {
    position: relative;
    padding-left: 2rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--bg-color);
}

.timeline-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Phase Badges */
.phase-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03rem;
    margin-top: 0.8rem;
    width: fit-content;
}

.phase-badge.in-progress {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

.phase-badge.upcoming {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

/* Active Phase Highlight */
.timeline-item.active-phase .timeline-dot {
    background: #4caf50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.empty-state h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.6;
}

/* Deliverable Cards */
.deliverable-card {
    gap: 0.4rem;
}

.deliverable-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(196, 164, 132, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}
