/* BuildAI Mobile App Styles */
/* Targeting iPhone 390px width - Mobile First Design */

/* Color Palette Variables */
:root {
    --luster-white: #F4F1EC;
    --aster-blue: #9BACD8;
    --habanero: #F98513;
    --jodhpur-tan: #E8DDD4;
    --deep-navy: #2B4A7A;
    --darker-navy: #1E3A5F;
    --darkest-navy: #162B47;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--darkest-navy);
    color: var(--luster-white);
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
}

/* Layout Structure */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--darker-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    border-bottom: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--luster-white);
}

.header-right {
    display: flex;
    align-items: center;
}

.user-profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--deep-navy);
    color: var(--luster-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    background: var(--habanero);
    color: white;
    transform: scale(1.05);
}

.main-content {
    margin-top: 60px;
    padding: 20px 16px;
    min-height: calc(100vh - 60px);
}

.main-content {
    margin-top: 60px;
    padding: 20px 16px;
    min-height: calc(100vh - 60px);
}

/* Page Management */
.page {
    display: block;
}

.page.hidden {
    display: none;
}

/* Home Page Styles */
.home-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-notifications-area {
    width: calc(100vw - 64px);
    height: calc(100vh - 200px);
    margin: 20px auto 40px auto;
    background: var(--darkest-navy);
    border: 1px solid var(--deep-navy);
    border-radius: 16px;
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.notifications-scroll-container {
    display: flex;
    gap: 0px;
    height: 100%;
    width: 100%;
    min-width: max-content;
    align-items: center;
    justify-content: center;
    padding: 0;
    touch-action: pan-x;
    overscroll-behavior: contain;
}

.notification-bubble {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    width: calc(100vw - 160px);
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    flex-shrink: 0;
    margin-right: 20px;
    text-align: center;
    position: relative;
}

.notification-bubble.read {
    opacity: 0.7;
}

.notification-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    z-index: 10;
    animation: notificationPulse 2s infinite;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

@keyframes notificationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    }
}

.notification-bubble:first-child {
    opacity: 0;
    pointer-events: none;
}

.notification-bubble.urgent {
    border-color: var(--habanero);
    background: linear-gradient(135deg, var(--darker-navy) 0%, rgba(249, 133, 19, 0.1) 100%);
}

.notification-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--luster-white);
    margin-bottom: 20px;
}

.notification-content {
    font-size: 18px;
    color: var(--aster-blue);
    line-height: 1.6;
    margin-bottom: 32px;
    width: 100%;
    text-align: center;
}

.notification-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.notification-time {
    font-size: 16px;
    color: var(--habanero);
    font-weight: 600;
}

.notification-action {
    background: var(--habanero);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.notification-action:hover {
    background: #e67510;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* All Updated Notification */
.notification-bubble.all-updated {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    animation: celebrationGlow 3s ease-in-out infinite;
}

@keyframes celebrationGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(34, 197, 94, 0.6);
        transform: translateY(-2px);
    }
}

.all-updated-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.all-updated-icon {
    font-size: 48px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.notification-bubble.all-updated .notification-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.notification-bubble.all-updated .notification-content {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.home-hero {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.home-hero h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--luster-white);
}

.home-hero p {
    font-size: 16px;
    color: var(--aster-blue);
    opacity: 0.9;
}

.home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.home-stat-card {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.home-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--habanero);
    margin-bottom: 4px;
}

.home-stat-label {
    font-size: 14px;
    color: var(--aster-blue);
}

.home-quick-actions {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-quick-actions h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--luster-white);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action-btn {
    background: var(--deep-navy);
    color: var(--luster-white);
    border: none;
    padding: 16px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--habanero);
    color: white;
    transform: translateY(-2px);
}

.home-recent-updates {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-recent-updates h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--luster-white);
}

.recent-update-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--deep-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-update-item:last-child {
    border-bottom: none;
}

.recent-update-text {
    font-size: 14px;
    flex: 1;
    color: var(--luster-white);
}

.recent-update-time {
    font-size: 12px;
    color: var(--aster-blue);
    opacity: 0.8;
}

/* Messages Page Styles */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--deep-navy);
}

.message-card.completed {
    opacity: 0.3;
    background: var(--deep-navy);
}

.message-sender {
    font-weight: bold;
    font-size: 14px;
    color: var(--habanero);
    margin-bottom: 4px;
}

.message-content {
    font-size: 15px;
    line-height: 1.4;
    color: var(--luster-white);
}

.message-time {
    font-size: 12px;
    color: var(--aster-blue);
    opacity: 0.8;
    margin-top: 8px;
}

/* Process Timeline Styles */
.process-timeline {
    position: relative;
    padding: 30px 20px;
    max-width: 100%;
    margin: 0 auto;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h2 {
    color: #F4F1EC;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-header p {
    color: #9BACD8;
    font-size: 16px;
    opacity: 0.8;
}

.timeline-line {
    position: absolute;
    left: 45px;
    top: 120px;
    bottom: 30px;
    width: 3px;
    background: linear-gradient(180deg, #9BACD8 0%, #1a1f2e 100%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-content {
    position: relative;
    z-index: 2;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* Timeline completion states */
.timeline-item.completed {
    opacity: 1;
}

.timeline-item.active {
    opacity: 1;
    transform: scale(1.02);
}

.timeline-item.upcoming {
    opacity: 0.5;
}

.timeline-point {
    position: relative;
    margin-right: 20px;
    z-index: 3;
}

.timeline-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

/* Timeline dot states */
.timeline-item.completed .timeline-dot {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.timeline-item.active .timeline-dot {
    background: linear-gradient(135deg, #F98513, #ff6b35);
    box-shadow: 0 4px 15px rgba(249, 133, 19, 0.4);
    animation: pulse 2s infinite;
}

.timeline-item.upcoming .timeline-dot {
    background: #2a3441;
    border: 2px solid #404857;
}

.timeline-icon {
    font-size: 18px;
    font-weight: bold;
}

.timeline-item.completed .timeline-icon {
    color: white;
}

.timeline-item.active .timeline-icon {
    color: white;
}

.timeline-item.upcoming .timeline-icon {
    color: #9BACD8;
    opacity: 0.6;
}

.timeline-card {
    flex: 1;
    background: linear-gradient(135deg, #2a3441, #1e2835);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #404857;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-card::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.timeline-item.active .timeline-card::before {
    background: linear-gradient(90deg, #F98513, #ff6b35);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.milestone-title {
    color: #F4F1EC;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.milestone-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.milestone-badge.completed {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.milestone-badge.active {
    background: rgba(249, 133, 19, 0.15);
    color: #F98513;
    border: 1px solid rgba(249, 133, 19, 0.3);
}

.milestone-badge.upcoming {
    background: rgba(155, 172, 216, 0.1);
    color: #9BACD8;
    border: 1px solid rgba(155, 172, 216, 0.2);
}

.milestone-description {
    color: #9BACD8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    opacity: 0.9;
}

.milestone-date {
    color: #9BACD8;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
    padding: 4px 0;
}

/* Hover effects */
.timeline-item.completed .timeline-card:hover,
.timeline-item.active .timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #9BACD8;
}

.timeline-item.upcoming .timeline-card:hover {
    border-color: #404857;
}

/* Pulse animation for active items */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(249, 133, 19, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(249, 133, 19, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(249, 133, 19, 0.4);
    }
}

/* Mobile responsiveness */
@media (max-width: 400px) {
    .process-timeline {
        padding: 20px 15px;
    }
    
    .timeline-line {
        left: 35px;
    }
    
    .timeline-dot {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon {
        font-size: 16px;
    }
    
    .timeline-card {
        padding: 16px;
    }
    
    .milestone-title {
        font-size: 16px;
    }
    
    .timeline-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Calendar Page Styles */
.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-event {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-datetime {
    font-weight: bold;
    font-size: 14px;
    color: var(--habanero);
}

.event-title {
    font-size: 15px;
    color: var(--luster-white);
}

/* YouTube-Style Analytics Dashboard */
.analytics-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.analytics-title h1 {
    color: var(--luster-white);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.analytics-title p {
    color: var(--aster-blue);
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
}

.analytics-period {
    display: flex;
    align-items: center;
}

.period-selector {
    background: var(--darker-navy);
    border: 1px solid var(--deep-navy);
    color: var(--luster-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.period-selector:focus {
    border-color: var(--habanero);
}

/* Key Metrics Cards */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.metric-card {
    background: linear-gradient(135deg, var(--darker-navy), var(--darkest-navy));
    border: 1px solid var(--deep-navy);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.metric-card.positive::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.metric-card.warning::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.metric-card.neutral::before {
    background: linear-gradient(90deg, var(--aster-blue), var(--deep-navy));
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--aster-blue);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.metric-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: rgba(155, 172, 216, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.metric-change.positive {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.metric-change.warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.metric-change.neutral {
    background: rgba(155, 172, 216, 0.15);
    color: var(--aster-blue);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--luster-white);
    margin-bottom: 4px;
    line-height: 1;
}

.metric-label {
    font-size: 16px;
    color: var(--aster-blue);
    opacity: 0.9;
    margin-bottom: 16px;
}

.metric-progress {
    width: 100%;
    height: 6px;
    background: var(--deep-navy);
    border-radius: 3px;
    overflow: hidden;
}

.metric-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--habanero), #ff6b35);
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Main Chart Section */
.main-chart-section {
    background: linear-gradient(135deg, var(--darker-navy), var(--darkest-navy));
    border: 1px solid var(--deep-navy);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 8px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.chart-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--luster-white);
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-type-btn {
    background: transparent;
    border: 1px solid var(--deep-navy);
    color: var(--aster-blue);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-type-btn:hover {
    border-color: var(--aster-blue);
    background: rgba(155, 172, 216, 0.1);
}

.chart-type-btn.active {
    background: var(--habanero);
    border-color: var(--habanero);
    color: white;
}

.chart-content {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 20px;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    gap: 16px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.chart-bar {
    width: 100%;
    max-width: 60px;
    background: linear-gradient(180deg, var(--habanero), #e67510);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    min-height: 20px;
}

.chart-bar:hover {
    background: linear-gradient(180deg, #ff6b35, var(--habanero));
    transform: scale(1.05);
}

.bar-value {
    color: white;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.bar-label {
    color: var(--aster-blue);
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    line-height: 1.2;
}

/* Secondary Metrics Grid */
.secondary-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: linear-gradient(135deg, var(--darker-navy), var(--darkest-navy));
    border: 1px solid var(--deep-navy);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--aster-blue);
}

.card-header {
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--luster-white);
    margin: 0 0 4px 0;
}

.card-subtitle {
    font-size: 14px;
    color: var(--aster-blue);
    opacity: 0.8;
}

/* Team Performance Styles */
.team-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--deep-navy);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.team-member:hover {
    background: var(--darkest-navy);
    transform: translateX(4px);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--luster-white);
}

.member-role {
    font-size: 14px;
    color: var(--aster-blue);
    opacity: 0.8;
}

.member-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.member-metric {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--habanero);
}

.metric-label {
    font-size: 12px;
    color: var(--aster-blue);
    opacity: 0.8;
}

.member-rating {
    font-size: 14px;
}

/* Budget Breakdown Styles */
.budget-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.budget-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--deep-navy);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.budget-item:hover {
    background: var(--darkest-navy);
}

.budget-category {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.category-name {
    font-size: 14px;
    color: var(--luster-white);
    font-weight: 500;
}

.budget-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--luster-white);
    margin-right: 12px;
}

.budget-percentage {
    font-size: 14px;
    color: var(--aster-blue);
    min-width: 40px;
    text-align: right;
}

/* Timeline Analysis Styles */
.timeline-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-phase {
    padding: 16px;
    background: var(--deep-navy);
    border-radius: 12px;
}

.phase-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.phase-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--luster-white);
}

.phase-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-status.completed {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.phase-status.active {
    background: rgba(249, 133, 19, 0.15);
    color: var(--habanero);
}

.phase-status.pending {
    background: rgba(155, 172, 216, 0.15);
    color: var(--aster-blue);
}

.phase-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phase-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--darkest-navy);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.phase-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--habanero), #ff6b35);
    border-radius: 4px;
    width: var(--progress, 0%);
    transition: width 0.8s ease;
}

.phase-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--aster-blue);
    min-width: 40px;
    text-align: right;
}

/* Quality Metrics Styles */
.quality-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quality-metric {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--deep-navy);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.quality-metric:hover {
    background: var(--darkest-navy);
    transform: translateX(4px);
}

.quality-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: rgba(155, 172, 216, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-info {
    flex: 1;
}

.quality-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--luster-white);
    margin-bottom: 2px;
}

.quality-label {
    font-size: 14px;
    color: var(--aster-blue);
    opacity: 0.8;
}

.quality-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
}

.quality-trend.positive {
    color: #4ade80;
}

.quality-trend.warning {
    color: #fbbf24;
}

.quality-trend.neutral {
    color: var(--aster-blue);
}

/* Activity Feed Styles */
.activity-feed {
    background: linear-gradient(135deg, var(--darker-navy), var(--darkest-navy));
    border: 1px solid var(--deep-navy);
    border-radius: 16px;
    padding: 24px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--deep-navy);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--darkest-navy);
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-icon.start {
    background: rgba(74, 222, 128, 0.15);
}

.activity-icon.document {
    background: rgba(155, 172, 216, 0.15);
}

.activity-icon.search {
    background: rgba(249, 133, 19, 0.15);
}

.activity-icon.meeting {
    background: rgba(99, 102, 241, 0.15);
}

.activity-icon.approval {
    background: rgba(74, 222, 128, 0.15);
}

.activity-icon.verification {
    background: rgba(249, 133, 19, 0.15);
}

.activity-icon.permit {
    background: rgba(59, 130, 246, 0.15);
}

.activity-icon.submission {
    background: rgba(155, 172, 216, 0.15);
}

.activity-icon.inspection {
    background: rgba(34, 197, 94, 0.15);
}

.activity-icon.progress {
    background: rgba(249, 133, 19, 0.15);
}

.activity-icon.delivery {
    background: rgba(99, 102, 241, 0.15);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--luster-white);
    margin-bottom: 4px;
}

.activity-description {
    font-size: 14px;
    color: var(--aster-blue);
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 8px;
}

.activity-time {
    font-size: 12px;
    color: var(--aster-blue);
    opacity: 0.7;
}

.activity-status {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.activity-status.completed {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.activity-status.active {
    background: rgba(249, 133, 19, 0.15);
    color: var(--habanero);
}

.activity-status.scheduled {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .analytics-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .key-metrics {
        grid-template-columns: 1fr;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .chart-controls {
        align-self: stretch;
        justify-content: center;
    }
    
    .member-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    
    .budget-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .activity-content {
        text-align: center;
    }
}

/* Details Page Styles */
.details-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--luster-white);
}

.download-btn {
    background: var(--habanero);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.download-btn:hover {
    background: #e67510;
}

/* Live Site Page Styles */
.live-site-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blueprint-area {
    background: var(--darker-navy);
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.blueprint-dots {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Complex House Layout */
.house-structure {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
}

/* Main House Body - L-shaped */
.main-house {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    border: 3px solid var(--aster-blue);
    background: rgba(155, 172, 216, 0.05);
}

/* Garage Extension */
.garage-wing {
    position: absolute;
    top: 65%;
    right: 0;
    width: 40%;
    height: 35%;
    border: 3px solid var(--aster-blue);
    background: rgba(155, 172, 216, 0.03);
}

/* Interior Room Divisions */
.room-walls {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
}

/* Vertical walls */
.wall-vertical-1 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45%;
    width: 2px;
    background: var(--aster-blue);
    opacity: 0.7;
}

.wall-vertical-2 {
    position: absolute;
    top: 50%;
    bottom: 0;
    left: 25%;
    width: 2px;
    background: var(--aster-blue);
    opacity: 0.7;
}

/* Horizontal walls */
.wall-horizontal-1 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--aster-blue);
    opacity: 0.7;
}

.wall-horizontal-2 {
    position: absolute;
    top: 75%;
    left: 25%;
    width: 20%;
    height: 2px;
    background: var(--aster-blue);
    opacity: 0.7;
}

/* Entrance/Door indicators */
.entrance {
    position: absolute;
    width: 15px;
    height: 4px;
    background: var(--habanero);
    border-radius: 2px;
}

.front-door {
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
}

.garage-door {
    bottom: -2px;
    right: 15%;
    width: 25px;
    height: 4px;
}

/* Room Labels */
.room-label {
    position: absolute;
    font-size: 9px;
    color: var(--aster-blue);
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(27, 43, 71, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
}

/* First Floor Rooms */
.room-label.living-room {
    top: 25%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.room-label.kitchen {
    top: 25%;
    left: 55%;
    transform: translate(-50%, -50%);
}

.room-label.dining {
    top: 62%;
    left: 12%;
    transform: translate(-50%, -50%);
}

.room-label.family-room {
    top: 62%;
    left: 35%;
    transform: translate(-50%, -50%);
}

.room-label.master-bedroom {
    top: 62%;
    left: 60%;
    transform: translate(-50%, -50%);
}

.room-label.bathroom {
    top: 87%;
    left: 35%;
    transform: translate(-50%, -50%);
}

.room-label.garage {
    top: 82%;
    left: 85%;
    transform: translate(-50%, -50%);
}

.location-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.location-dot:hover {
    transform: scale(1.2);
}

.dot-builder {
    background: #007AFF;
}

.dot-electrician {
    background: #34C759;
}

.dot-inspector {
    background: #FF3B30;
}

.dot-plumber {
    background: #FF9500;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-info {
    flex: 1;
}

.legend-name {
    font-weight: bold;
    font-size: 15px;
    color: var(--luster-white);
}

.legend-status {
    font-size: 13px;
    color: var(--aster-blue);
}

/* Render Section Styles */
.render-section {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: 16px;
}

.render-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.render-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--luster-white);
    margin: 0;
}

.render-btn {
    background: var(--habanero);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.render-btn:hover {
    background: #e67510;
}

.render-icon {
    font-size: 16px;
}

.render-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.render-update {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.update-badge {
    background: var(--habanero);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.update-text {
    font-size: 14px;
    color: var(--luster-white);
    line-height: 1.4;
}

.update-time {
    font-size: 12px;
    color: var(--aster-blue);
}

.render-stats {
    display: flex;
    gap: 16px;
}

.render-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--habanero);
}

.stat-label {
    font-size: 11px;
    color: var(--aster-blue);
    text-align: center;
}

/* Drone Section Styles */
.drone-section {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: 16px;
}

.drone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.drone-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--luster-white);
    margin: 0;
}

.drone-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--aster-blue);
}

.drone-status.active {
    color: #34C759;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34C759;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.drone-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.drone-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.drone-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--habanero);
}

.drone-label {
    font-size: 12px;
    color: var(--aster-blue);
    text-align: center;
}

.drone-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: var(--deep-navy);
    border-radius: 6px;
    font-size: 12px;
}

.drone-name {
    font-weight: 500;
    color: var(--luster-white);
}

.drone-task {
    color: var(--aster-blue);
    flex: 1;
    text-align: center;
}

.drone-battery {
    color: #34C759;
    font-weight: 500;
}

/* Render Modal Styles */
.render-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.render-modal-content {
    background: var(--darker-navy);
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.render-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--deep-navy);
}

.render-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--luster-white);
    margin: 0;
}

.render-modal-close {
    background: none;
    border: none;
    color: var(--luster-white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.render-modal-body {
    padding: 20px;
}

.render-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.render-placeholder {
    background: var(--deep-navy);
    border: 2px dashed var(--aster-blue);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: var(--aster-blue);
    font-size: 16px;
}

.render-info-detailed ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.render-info-detailed li {
    padding: 6px 0;
    color: var(--luster-white);
    font-size: 14px;
}

.render-metadata {
    background: var(--deep-navy);
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.metadata-item {
    padding: 4px 0;
    font-size: 14px;
    color: var(--luster-white);
}

.render-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid var(--deep-navy);
}

.btn-secondary {
    background: var(--deep-navy);
    color: var(--luster-white);
    border: 1px solid var(--aster-blue);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background: var(--habanero);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Dev Page Styles */
.dev-container {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.current-stage-info {
    background: var(--deep-navy);
    color: var(--luster-white);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.current-stage-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--luster-white);
}

.current-stage-info p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    color: var(--aster-blue);
}

.stage-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stage-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--deep-navy);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.stage-option:hover {
    background: var(--darkest-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stage-option.active {
    background: var(--habanero);
    color: white;
    border-color: var(--luster-white);
}

.stage-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--habanero);
    margin-top: 2px;
}

.stage-option label {
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--luster-white);
}

.stage-option label strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--luster-white);
}

.stage-option label small {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
    color: var(--aster-blue);
}

.stage-option.active label,
.stage-option.active label strong,
.stage-option.active label small {
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(155, 172, 216, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 241, 236, 0.2);
}

.scroll-indicator:hover {
    background: rgba(155, 172, 216, 1);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 4px 15px rgba(155, 172, 216, 0.4);
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.scroll-arrow {
    width: 12px;
    height: 12px;
    border: 2px solid #F4F1EC;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-3px);
    }
    60% {
        transform: rotate(45deg) translateY(-1px);
    }
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 200;
}

.action-buttons.stage-1-hidden {
    display: none;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.menu-btn {
    background: var(--deep-navy);
    color: var(--luster-white);
}

.chat-btn {
    background: var(--habanero);
    color: white;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--luster-white);
    position: relative;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--luster-white);
    left: 0;
}

.hamburger:before {
    top: -6px;
}

.hamburger:after {
    top: 6px;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 43, 71, 0.95);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay.hidden {
    display: none;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
}

.menu-item {
    color: var(--luster-white);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    transition: background 0.2s ease;
}

.menu-item:hover {
    background: var(--deep-navy);
    color: var(--luster-white);
}

.menu-item.active {
    background: var(--habanero);
    color: white;
}

/* Chat Popup */
.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    height: 400px;
    background: var(--darker-navy);
    border: 1px solid var(--deep-navy);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 250;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(1);
    opacity: 1;
}

.chat-popup.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
}

.chat-header {
    background: var(--darkest-navy);
    color: var(--luster-white);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: var(--luster-white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.chat-message {
    padding: 12px;
    border-radius: 12px;
    max-width: 80%;
    animation: slideInMessage 0.3s ease-out;
    transform-origin: bottom;
}

@keyframes slideInMessage {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message.bot {
    background: var(--deep-navy);
    color: var(--luster-white);
    align-self: flex-start;
}

.chat-message.user {
    background: var(--habanero);
    color: white;
    align-self: flex-end;
}

.chat-input-container {
    padding: 16px;
    border-top: 1px solid var(--deep-navy);
    background: var(--darker-navy);
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--deep-navy);
    border-radius: 8px;
    font-size: 14px;
    background: var(--darkest-navy);
    color: var(--luster-white);
    outline: none;
}

.chat-input:focus {
    border-color: var(--habanero);
}

.chat-send {
    background: var(--habanero);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-send:hover {
    background: #e67510;
}

/* Typing Indicator Animation */
.typing-indicator {
    opacity: 0.8;
    animation: fadeInTyping 0.2s ease-in;
}

@keyframes fadeInTyping {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.typing-animation {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 0;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9BACD8;
    animation: typingBounce 1.4s infinite ease-in-out;
    will-change: transform, opacity;
}

.typing-animation span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-animation span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-animation span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateZ(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1) translateZ(0);
        opacity: 1;
    }
}

/* Stage-specific content */
.stage-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Loading Animation Styles */
.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: var(--darker-navy);
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--deep-navy);
    border-top: 3px solid var(--habanero);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--luster-white);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--aster-blue);
    opacity: 0.8;
}

/* Apple-Style Calendar */
.apple-calendar {
    background: var(--darker-navy);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.calendar-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--luster-white);
    margin: 0;
}

.nav-btn {
    background: var(--deep-navy);
    border: none;
    color: var(--luster-white);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--aster-blue);
    transform: scale(1.05);
}

.calendar-grid {
    width: 100%;
}

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

.weekday {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--aster-blue);
    padding: 12px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--darkest-navy);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 60px;
}

.calendar-day:hover {
    background: var(--deep-navy);
    transform: scale(1.02);
}

.calendar-day.selected {
    background: var(--habanero);
    color: white;
}

.calendar-day.empty {
    cursor: default;
    opacity: 0;
}

.calendar-day.empty:hover {
    background: var(--darkest-navy);
    transform: none;
}

.day-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--luster-white);
    margin-bottom: 4px;
}

.calendar-day.selected .day-number {
    color: white;
}

.event-dots {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aster-blue);
}

.event-dot.architect {
    background: var(--habanero);
}

.event-dot.builder {
    background: #34C759;
}

.event-dot.inspection {
    background: #FF9500;
}

.event-dot.meeting {
    background: var(--aster-blue);
}

.event-dot.more {
    background: var(--luster-white);
    color: var(--darkest-navy);
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
}

/* Day Details Panel */
.day-details {
    background: var(--deep-navy);
    border-radius: 12px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--darkest-navy);
}

.day-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--darkest-navy);
}

.day-details-header h3 {
    color: var(--luster-white);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-details {
    background: none;
    border: none;
    color: var(--aster-blue);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-details:hover {
    background: var(--darkest-navy);
    color: var(--luster-white);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-event {
    background: var(--darkest-navy);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--aster-blue);
}

.day-event.architect {
    border-left-color: var(--habanero);
}

.day-event.builder {
    border-left-color: #34C759;
}

.day-event.inspection {
    border-left-color: #FF9500;
}

.event-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--habanero);
    margin-bottom: 4px;
}

.event-title {
    font-size: 16px;
    color: var(--luster-white);
    line-height: 1.4;
}

.no-events {
    text-align: center;
    color: var(--aster-blue);
    font-style: italic;
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .calendar-day {
        min-height: 50px;
        padding: 4px 2px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .event-dot {
        width: 4px;
        height: 4px;
    }
    
    .event-dot.more {
        width: 8px;
        height: 8px;
        font-size: 6px;
    }
}

/* Time Selection Page Styles */
.time-selection-page {
    padding: 20px;
    color: var(--luster-white);
}

.time-selection-header {
    text-align: center;
    margin-bottom: 30px;
}

.time-selection-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--luster-white);
    margin-bottom: 8px;
}

.time-selection-header p {
    font-size: 16px;
    color: var(--aster-blue);
    opacity: 0.9;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.time-slot {
    background: var(--darker-navy);
    border: 2px solid var(--deep-navy);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: var(--aster-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.time-slot.selected {
    border-color: var(--habanero);
    background: linear-gradient(135deg, var(--darker-navy) 0%, rgba(249, 133, 19, 0.1) 100%);
}

.slot-date {
    font-size: 18px;
    font-weight: 600;
    color: var(--luster-white);
    margin-bottom: 4px;
}

.slot-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--habanero);
    margin-bottom: 4px;
}

.slot-day {
    font-size: 14px;
    color: var(--aster-blue);
    opacity: 0.8;
}

.consultation-details {
    background: var(--darker-navy);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--deep-navy);
}

.consultation-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--luster-white);
    margin-bottom: 16px;
}

.consultation-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consultation-details li {
    font-size: 14px;
    color: var(--aster-blue);
    padding: 8px 0;
    border-bottom: 1px solid var(--deep-navy);
    position: relative;
    padding-left: 20px;
}

.consultation-details li:last-child {
    border-bottom: none;
}

.consultation-details li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--habanero);
    font-weight: bold;
}

.architect-carousel,
.builder-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-snap-type: x mandatory;
}

.architect-card,
.builder-card {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    min-width: 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-image {
    width: 100%;
    height: 120px;
    background: var(--deep-navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--aster-blue);
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--luster-white);
}

.profile-style,
.profile-rating {
    font-size: 14px;
    color: var(--aster-blue);
}

.schedule-btn {
    background: var(--habanero);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
}

.onboarding-form {
    background: var(--darker-navy);
    color: var(--luster-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--deep-navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--luster-white);
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid var(--deep-navy);
    border-radius: 8px;
    font-size: 14px;
    background: var(--darkest-navy);
    color: var(--luster-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--habanero);
    box-shadow: 0 0 0 3px rgba(249, 133, 19, 0.1);
}

.submit-btn {
    background: var(--habanero);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-16 {
    margin-top: 16px;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 390px) {
    .main-content {
        padding: 16px 12px;
    }
    
    .chat-popup {
        width: calc(100vw - 24px);
        right: 12px;
    }
    
    .action-buttons {
        padding: 0 16px;
    }
}