/* Root Variables - Pastel Color Palette */
:root {
    --pastel-pink: #FFE5E5;
    --pastel-peach: #FFD6BA;
    --pastel-lavender: #E5D9F2;
    --pastel-mint: #D4F1F4;
    --pastel-cream: #FFF9E6;
    --pastel-rose: #FFB6C1;
    --pastel-sage: #C8E6C9;

    --primary: #D4A5A5;
    --primary-hover: #C89090;
    --secondary: #B8B8D0;
    --accent: #FFB4B4;

    --text-dark: #4A4A4A;
    --text-medium: #6B6B6B;
    --text-light: #8B8B8B;

    --bg-main: #FEFEFE;
    --bg-secondary: #F8F8FA;
    --bg-card: #FFFFFF;

    --border-light: #E8E8E8;
    --border-medium: #D0D0D0;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--pastel-lavender) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Screen Management */
.screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
}

.screen.active {
    display: block;
    position: relative;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Onboarding Screen */
#onboarding {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

#onboarding.active {
    display: flex;
}

.header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.app-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    font-weight: 300;
}

.onboarding-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    height: 6px;
    background: var(--pastel-lavender);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pastel-rose), var(--primary));
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 33.33%;
}

.question-step {
    display: none;
}

.question-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.question-step h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-medium);
    font-size: 0.95rem;
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-main);
    color: var(--text-dark);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--pastel-rose));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button-group .btn {
    flex: 1;
}

/* Dashboard Layout */
#dashboard .container {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
}

/* Navbar */
.navbar {
    background: var(--bg-card);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ===== WEDDING SIDEBAR BASE ===== */
.wedding-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-right: 1px solid #f9a8d4;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
}

/* ===== SIDEBAR HEADER ===== */
.sidebar-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(236, 72, 153, 0.2);
}

.couple-avatar {
    margin: 0 auto 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    font-size: 36px;
    filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.3));
}

.couple-names {
    font-size: 20px;
    font-weight: 700;
    color: #831843;
    margin: 0 0 8px 0;
}

.wedding-countdown {
    font-size: 13px;
    color: #9f1239;
    margin: 0;
    font-weight: 500;
}

.countdown-number {
    font-size: 18px;
    font-weight: 700;
    color: #be123c;
}

/* ===== SIDEBAR OVERVIEW ===== */
.sidebar-overview {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.overview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overview-label {
    font-size: 12px;
    font-weight: 600;
    color: #9f1239;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    height: 8px;
    background: #fce7f3;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, #be123c 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.overview-value {
    font-size: 14px;
    font-weight: 600;
    color: #831843;
}

/* ===== NAVIGATION SECTIONS ===== */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: #9f1239;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 12px 8px;
}

/* ===== NAV ITEMS ===== */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #831843;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(236, 72, 153, 0.1);
    transform: translateX(2px);
}

.nav-item.active {
    background: white;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
    font-weight: 600;
}

.nav-item.active-category {
    background: linear-gradient(135deg, #ec4899 0%, #be123c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.nav-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.nav-label {
    flex: 1;
}

/* Status badges */
.nav-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-status.not-started {
    background: #f3f4f6;
    color: #6b7280;
}

.nav-status.exploring {
    background: #dbeafe;
    color: #1e40af;
}

.nav-status.researching {
    background: #fef3c7;
    color: #92400e;
}

.nav-status.committed {
    background: #d1fae5;
    color: #065f46;
}

/* Other badges */
.nav-badge {
    background: #ec4899;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-badge.warning {
    background: #f59e0b;
    color: white;
}

.nav-count {
    font-size: 12px;
    color: #9f1239;
    font-weight: 500;
}

/* ===== SIDEBAR FOOTER CTA ===== */
.sidebar-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(236, 72, 153, 0.2);
}

.sidebar-cta {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.cta-icon {
    font-size: 18px;
}

/* ===== SCROLLBAR ===== */
.wedding-sidebar::-webkit-scrollbar {
    width: 6px;
}

.wedding-sidebar::-webkit-scrollbar-track {
    background: rgba(236, 72, 153, 0.1);
}

.wedding-sidebar::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.3);
    border-radius: 3px;
}

.wedding-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.5);
}

/* ===== WEDDING SIDEBAR RESPONSIVE ===== */
@media (max-width: 768px) {
    .wedding-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #f9a8d4;
    }

    .main-content {
        margin-left: 0;
    }
}

/* ===== OLD SIDEBAR CLASSES (DEPRECATED) ===== */
.sidebar {
    display: none; /* Hide old sidebar */
}

.menu-item {
    display: none; /* Hide old menu items */
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px; /* Account for fixed sidebar */
    transition: margin-left 0.3s ease;
    min-width: 0;
}

/* AI Assistant Sidebar */
.assistant-sidebar {
    width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.assistant-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assistant-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assistant-icon {
    font-size: 1.5rem;
}

.assistant-title-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.assistant-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.assistant-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.claude-message {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.claude-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.claude-message-assistant {
    align-self: flex-start;
}

.claude-message-error {
    align-self: flex-start;
}

.claude-message-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.claude-message-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 260px;
}

.claude-message-content {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.claude-message-user .claude-message-content {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.claude-message-assistant .claude-message-content {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.claude-message-error .claude-message-content {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-bottom-left-radius: 4px;
}

.claude-message-time {
    font-size: 0.7rem;
    color: #6b7280;
    padding: 0 0.25rem;
}

.claude-message-user .claude-message-time {
    text-align: right;
}

.claude-typing-indicator .claude-message-content {
    display: flex;
    gap: 6px;
    padding: 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

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

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

.assistant-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.assistant-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    transition: border-color 0.2s ease;
}

.assistant-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.assistant-send-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.assistant-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.assistant-send-btn:active {
    transform: scale(0.95);
}

.assistant-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar styling for assistant messages */
.assistant-messages::-webkit-scrollbar {
    width: 6px;
}

.assistant-messages::-webkit-scrollbar-track {
    background: transparent;
}

.assistant-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.assistant-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Extraction Confirmation Card */
.extraction-confirmation-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    animation: slideInUp 0.3s ease;
    transition: all 0.3s ease;
}

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

.extraction-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: white;
}

.extraction-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extraction-title {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.extraction-details {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-row {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #1f2937;
    margin-right: 0.5rem;
}

.detail-row.missing-info {
    color: #d97706;
    font-style: italic;
}

.extraction-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.extraction-actions .btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.extraction-actions .btn-primary {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.extraction-actions .btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.extraction-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.extraction-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Vision Extraction Section */
.vision-extraction-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #fbbf24;
}

.vision-extraction-header {
    font-weight: 600;
    font-size: 0.875rem;
    color: #92400e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vision-detail {
    padding: 0.375rem 0;
    font-size: 0.8rem;
    color: #374151;
}

.vision-detail strong {
    color: #1f2937;
    margin-right: 0.5rem;
}

.view {
    display: none;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.view-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--pastel-mint);
}

/* Budget Overview */
.budget-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--pastel-cream), var(--pastel-peach));
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Sections */
.section {
    margin-bottom: 2.5rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Category List */
.category-list {
    display: grid;
    gap: 1rem;
}

.category-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 60px;
    gap: 1rem;
    align-items: center;
    transition: var(--transition);
}

.category-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.category-name {
    font-weight: 600;
    color: var(--text-dark);
}

.category-amount {
    text-align: right;
    color: var(--text-medium);
}

.category-status {
    text-align: center;
    font-size: 1.25rem;
}

/* Vendor List */
.vendor-list {
    display: grid;
    gap: 1rem;
}

.vendor-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px;
    gap: 1rem;
    align-items: center;
}

.vendor-name {
    font-weight: 600;
    color: var(--text-dark);
}

.vendor-category {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.vendor-cost,
.vendor-status-text {
    text-align: right;
    color: var(--text-medium);
}

.vendor-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: var(--transition);
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* Rich Vendor Cards */
.vendor-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease;
}

.vendor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.vendor-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.vendor-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.vendor-menu-btn:hover {
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 4px;
}

.vendor-contact {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.vendor-contact strong {
    color: #374151;
}

.vendor-quote {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.vendor-quote strong {
    display: block;
    color: #1f2937;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.quote-items {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.quote-items li {
    color: #4b5563;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
}

.vendor-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
}

.vendor-thoughts {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.vendor-thoughts h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vendor-thoughts p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
}

.vendor-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
}

.vendor-metrics .metric {
    font-size: 0.875rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vendor-concerns {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.vendor-concerns strong {
    display: block;
    color: #991b1b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.vendor-concerns ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #7f1d1d;
}

.vendor-concerns li {
    margin-bottom: 0.25rem;
}

.vendor-highlights {
    background: #dbeafe;
    border-left: 3px solid #3b82f6;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.vendor-highlights strong {
    display: block;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.vendor-highlights ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #1e3a8a;
}

.vendor-highlights li {
    margin-bottom: 0.25rem;
}

.vendor-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.vendor-actions .btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Vendor cards container in category views */
.category-vendors-section {
    margin-top: 2rem;
}

.category-vendors-section h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.vendors-grid {
    display: grid;
    gap: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vendor-card {
        padding: 1rem;
    }

    .vendor-header h3 {
        font-size: 1.125rem;
    }

    .vendor-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vendor-actions {
        flex-direction: column;
    }

    .vendor-actions .btn-sm {
        width: 100%;
    }
}

/* Payments List */
.payments-list {
    display: grid;
    gap: 0.75rem;
}

.payment-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: grid;
    grid-template-columns: 120px 2fr 1fr 100px;
    gap: 1rem;
    align-items: center;
}

.payment-date {
    font-weight: 600;
    color: var(--text-dark);
}

.payment-vendor {
    color: var(--text-medium);
}

.payment-amount {
    text-align: right;
    font-weight: 600;
}

.payment-urgency {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.urgency-upcoming {
    background: var(--pastel-sage);
    color: var(--text-dark);
}

.urgency-soon {
    background: var(--pastel-peach);
    color: var(--text-dark);
}

.urgency-urgent {
    background: var(--accent);
    color: white;
}

/* Vision Summary */
.vision-summary {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-mint));
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.summary-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

/* Progress Grid */
.progress-grid {
    display: grid;
    gap: 1rem;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.progress-item select {
    width: auto;
    min-width: 150px;
}

/* Task List */
.task-list {
    display: grid;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.task-item:hover {
    background: var(--pastel-lavender);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.task-text {
    flex: 1;
    color: var(--text-dark);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-light);
}

/* Category Content */
.category-content {
    display: grid;
    gap: 2rem;
}

.vision-questions {
    background: var(--pastel-cream);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.vision-question {
    margin-bottom: 1.5rem;
}

.vision-question:last-child {
    margin-bottom: 0;
}

.category-details {
    display: grid;
    gap: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Breathing room on all sides */
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh; /* CRITICAL: Never exceed 90% of viewport height */
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Don't let header shrink */
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto; /* CRITICAL: Make this scrollable */
    flex: 1; /* Take up remaining space */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.modal-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-light);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-shrink: 0; /* Don't let footer shrink */
    background: var(--bg-card); /* Ensure footer has solid background */
}

/* Modal Scrolling Enhancements */
.modal-body {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Form fields inside modal body */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

/* Mobile Modal Responsive Styles */
@media (max-width: 768px) {
    .modal {
        padding: 0; /* Full screen on mobile */
    }

    .modal-content {
        max-height: 100vh; /* Full height on mobile */
        height: 100vh; /* Take full screen */
        border-radius: 0; /* No rounded corners on mobile */
        width: 100%;
        max-width: none;
    }

    .modal-body {
        /* Body will scroll, header and footer stay fixed */
        padding: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #dashboard .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .category-item,
    .vendor-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .category-amount,
    .vendor-cost {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .onboarding-card {
        padding: 2rem 1.5rem;
    }

    .view {
        padding: 1.5rem;
    }

    /* Full-screen assistant sidebar on mobile */
    .assistant-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        z-index: 10000;
    }

    .assistant-header {
        padding: 1rem;
    }

    .assistant-title-text {
        font-size: 0.875rem;
    }

    .assistant-subtitle {
        font-size: 0.7rem;
    }

    .assistant-messages {
        padding: 1rem;
    }

    .claude-message-bubble {
        max-width: calc(100vw - 120px);
    }

    .budget-overview {
        grid-template-columns: 1fr 1fr;
    }

    .payment-item {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
}

@media (max-width: 480px) {
    .budget-overview {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }
}

/* Login Screen */
.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.login-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.login-options {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-login {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
}

.btn-login:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-login.btn-couple:hover {
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-lavender));
}

.btn-login.btn-member:hover {
    background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-sage));
}

.login-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.login-text {
    flex: 1;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.login-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Partner Selection */
.partner-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-partner {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-partner:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.partner-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.partner-status {
    font-size: 0.875rem;
    color: var(--text-medium);
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.partner-status.completed {
    background: var(--pastel-sage);
    color: var(--text-dark);
}

.partner-status.in-progress {
    background: var(--pastel-peach);
    color: var(--text-dark);
}

/* Extended Onboarding */
.progress-section {
    margin-bottom: 2rem;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.progress-note {
    font-size: 0.75rem;
    color: var(--text-light);
}

.onboarding-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.question-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

/* User Switcher */
.user-switcher {
    position: relative;
}

.btn-user {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.btn-user:hover {
    border-color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.75rem;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.user-icon {
    font-size: 1.25rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

/* Alignment Dashboard */
.alignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.alignment-actions {
    display: flex;
    gap: 1rem;
}

.alignment-overview {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.alignment-score-card {
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-lavender));
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.score-label {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.score-subtitle {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.completion-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.completion-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.completion-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.completion-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.completion-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.section-alignment {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.section-alignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-alignment-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.section-alignment-score {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-alignment-score.high {
    color: #4CAF50;
}

.section-alignment-score.medium {
    color: #FF9800;
}

.section-alignment-score.low {
    color: #F44336;
}

.comparison-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--border-light);
}

.comparison-item.match {
    border-left-color: #4CAF50;
}

.comparison-item.similar {
    border-left-color: #8BC34A;
}

.comparison-item.minor-difference {
    border-left-color: #FF9800;
}

.comparison-item.different {
    border-left-color: #F44336;
}

.comparison-question {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.comparison-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.answer-block {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.answer-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.answer-text {
    color: var(--text-dark);
}

/* Inner Circle Members */
.members-list {
    display: grid;
    gap: 1rem;
}

.member-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.member-card:hover {
    box-shadow: var(--shadow-sm);
}

.member-info {
    display: grid;
    gap: 0.5rem;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.member-detail {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.member-weight {
    display: inline-block;
    background: var(--pastel-mint);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.member-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.permission-badge {
    background: var(--bg-card);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    border: 1px solid var(--border-light);
}

.permission-badge.can-edit {
    background: var(--pastel-sage);
    border-color: var(--pastel-sage);
}

.permission-badge.can-view {
    background: var(--pastel-mint);
    border-color: var(--pastel-mint);
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.weight-value {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.permissions-grid {
    display: grid;
    gap: 1rem;
}

.permission-row {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: center;
}

.category-name-perm {
    font-weight: 600;
    color: var(--text-dark);
}

.permission-select {
    width: 100%;
}

/* AI Insights Panel Styles */
.ai-insights-panel {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.ai-insights-panel.collapsed {
    padding: 0;
    overflow: hidden;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.insights-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.insights-loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid var(--pastel-lavender);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.insights-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.insights-error {
    text-align: center;
    padding: 2rem;
    color: var(--accent);
}

.insights-content {
    display: grid;
    gap: 2rem;
}

.insight-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.insight-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.insight-description {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Consensus Gauge */
.consensus-gauge {
    margin-bottom: 1rem;
}

.gauge-bar {
    height: 24px;
    background: var(--pastel-lavender);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pastel-sage), var(--primary));
    border-radius: var(--radius-sm);
    transition: width 0.8s ease;
}

.gauge-label {
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.consensus-gauge-large .gauge-bar {
    height: 32px;
}

.consensus-gauge-large .gauge-label {
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Priorities List */
.priorities-list {
    display: grid;
    gap: 1rem;
}

.priority-item,
.overall-priority-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.priority-item:hover,
.overall-priority-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.priority-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--pastel-rose));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.priority-details {
    flex: 1;
}

.priority-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.priority-bar {
    height: 8px;
    background: var(--pastel-lavender);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.priority-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pastel-rose), var(--primary));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.priority-score {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* Key Themes Cloud */
.themes-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--pastel-cream);
    border-radius: var(--radius-md);
}

.theme-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--pastel-lavender);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.theme-tag:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: white;
}

/* Conflicts List */
.conflicts-list {
    display: grid;
    gap: 1rem;
}

.conflict-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--pastel-peach);
}

.conflict-item.conflict-critical {
    border-left-color: var(--accent);
    background: rgba(255, 180, 180, 0.1);
}

.conflict-item.conflict-high {
    border-left-color: var(--pastel-peach);
    background: rgba(255, 214, 186, 0.1);
}

.conflict-item.conflict-medium {
    border-left-color: var(--pastel-cream);
}

.conflict-item.conflict-low {
    border-left-color: var(--pastel-sage);
}

.conflict-severity {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.conflict-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.conflict-details {
    color: var(--text-dark);
}

.conflict-description {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.conflict-suggestion {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-style: italic;
    padding-left: 1rem;
    border-left: 2px solid var(--pastel-lavender);
}

/* Recommendations List */
.recommendations-list {
    display: grid;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--pastel-cream), var(--pastel-mint));
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.recommendation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recommendation-item p {
    flex: 1;
    margin: 0;
    color: var(--text-dark);
}

/* Response Influence Chart */
.influence-chart {
    display: grid;
    gap: 0.75rem;
}

.influence-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
}

.influence-name {
    font-weight: 600;
    color: var(--text-dark);
}

.influence-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.influence-bar {
    height: 24px;
    background: linear-gradient(90deg, var(--pastel-lavender), var(--primary));
    border-radius: var(--radius-sm);
    transition: width 0.8s ease;
}

.influence-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 40px;
}

/* Insights Metadata */
.insights-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* AI Insights Section */
.ai-insights-section {
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-lavender));
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.ai-insights-section .section-header {
    margin-bottom: 1rem;
}

/* Overall Priorities List */
.overall-priorities-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive Design for AI Components */
@media (max-width: 768px) {
    .insight-section {
        padding: 1rem;
    }

    .priority-rank {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .themes-cloud {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .theme-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .influence-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .consensus-gauge-large .gauge-label {
        font-size: 1.25rem;
    }

    .insights-metadata {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Utility Classes */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Phase 4-5: Activity Feed & Comments System ===== */

/* Activity Widget in Navbar */
.activity-widget {
    position: relative;
    margin: 0 1rem;
}

.activity-widget-toggle {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: var(--transition);
}

.activity-widget-toggle:hover {
    transform: scale(1.1);
}

.activity-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.activity-widget-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 350px;
    max-height: 500px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.activity-widget.active .activity-widget-dropdown {
    display: block;
}

.activity-widget-header {
    padding: 1rem;
    border-bottom: 2px solid var(--border-light);
    font-weight: 600;
    color: var(--text-dark);
}

.activity-widget-list {
    max-height: 350px;
    overflow-y: auto;
}

.activity-widget-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.activity-widget-item:hover {
    background: var(--bg-secondary);
}

.activity-widget-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-widget-content {
    flex: 1;
    min-width: 0;
}

.activity-widget-text {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.activity-widget-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.activity-widget-footer {
    padding: 0.75rem 1rem;
    border-top: 2px solid var(--border-light);
    text-align: center;
}

.activity-widget-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Activity Feed Page */
.activity-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}

.activity-filters select {
    flex: 1;
    min-width: 150px;
}

.activity-feed {
    display: grid;
    gap: 1.5rem;
}

.activity-date-group {
    margin-bottom: 1.5rem;
}

.activity-date-header {
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.activities-list {
    display: grid;
    gap: 0.75rem;
}

.activity-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.activity-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

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

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-user {
    font-weight: 600;
    color: var(--text-dark);
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.activity-details {
    color: var(--text-medium);
    line-height: 1.5;
}

.activity-category {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--pastel-lavender);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
    position: relative;
}

.category-tab:hover {
    color: var(--text-dark);
    background: var(--bg-secondary);
}

.category-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-badge {
    display: inline-block;
    background: var(--pastel-rose);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.category-tab-content {
    display: none;
}

.category-tab-content.active {
    display: block;
}

/* Comments System */
.comments-container {
    margin-top: 1.5rem;
}

.comment-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.comment-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-medium);
}

.comment-checkbox-label input[type="checkbox"] {
    width: auto;
}

.comment-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.comment-item:hover {
    box-shadow: var(--shadow-sm);
}

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

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pastel-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-dark);
}

.comment-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.couple-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--pastel-pink);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    opacity: 0.5;
    transition: var(--transition);
    padding: 0.25rem;
}

.comment-delete-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.comment-body {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.mention {
    color: var(--primary);
    font-weight: 600;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-action-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.comment-action-btn:hover {
    background: var(--pastel-lavender);
    border-color: var(--primary);
}

.comment-action-btn.reacted {
    background: var(--pastel-rose);
    border-color: var(--primary);
}

.comment-reply-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    transition: var(--transition);
}

.comment-reply-btn:hover {
    text-decoration: underline;
}

.comment-reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.comment-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* File Sharing System */
.files-container {
    margin-top: 1.5rem;
}

.file-upload-area {
    margin-bottom: 1.5rem;
}

.file-drop-zone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.file-drop-zone:hover {
    border-color: var(--primary);
    background: var(--pastel-lavender);
}

.file-drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--pastel-mint);
}

.file-drop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-drop-text {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.file-drop-hint {
    color: var(--text-light);
    font-size: 0.875rem;
}

.file-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: var(--transition);
}

.file-item:hover {
    box-shadow: var(--shadow-sm);
}

.file-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.file-preview {
    max-width: 200px;
    max-height: 150px;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Privacy Features */
.private-notes-section {
    background: linear-gradient(135deg, var(--pastel-cream), var(--pastel-peach));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.private-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.private-notes-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.private-badge {
    padding: 0.375rem 0.75rem;
    background: var(--pastel-rose);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.private-note-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    resize: vertical;
    background: white;
}

.private-notes-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.restricted-content {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.restricted-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.restricted-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.restricted-content p {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.restricted-hint {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Permission Editor */
.permission-editor {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.permission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.permission-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.permission-role-badge {
    padding: 0.5rem 1rem;
    background: var(--pastel-lavender);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.permission-presets {
    margin-bottom: 2rem;
}

.permission-presets h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.preset-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-medium);
    background: var(--bg-card);
    transition: var(--transition);
}

.preset-btn:hover {
    background: var(--pastel-lavender);
    border-color: var(--primary);
}

.permission-grid-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.permission-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.permission-grid th {
    background: var(--bg-secondary);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-medium);
}

.permission-grid td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.category-cell {
    font-weight: 500;
    color: var(--text-dark);
}

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

.permission-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.preset-cell {
    width: 200px;
}

.preset-select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.permission-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.permission-modal .modal-content {
    max-width: 1200px;
}

/* Task Assignment */
.task-details {
    flex: 1;
}

.task-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.task-assigned,
.task-due {
    color: var(--text-medium);
    padding: 0.25rem 0.625rem;
    background: var(--pastel-lavender);
    border-radius: var(--radius-sm);
}

.task-edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    opacity: 0.5;
    transition: var(--transition);
    padding: 0.25rem;
}

.task-edit-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid var(--pastel-sage);
}

.toast-info {
    border-left: 4px solid var(--pastel-mint);
}

.toast-warning {
    border-left: 4px solid var(--pastel-peach);
}

.toast-error {
    border-left: 4px solid var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .activity-widget-dropdown {
        min-width: 300px;
        right: -100px;
    }

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .permission-grid-container {
        margin: 0 -1rem;
    }

    .activity-filters {
        flex-direction: column;
    }

    .activity-filters select {
        width: 100%;
    }
}
/* ============================================
   Journey Progress Widget
   ============================================ */

.journey-overview-section {
    margin-bottom: 2rem;
}

.journey-overview {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Phase Indicators */
.phase-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.phase-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    transition: background 0.3s ease;
}

.phase-card.active {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.phase-card.active::before {
    background: linear-gradient(90deg, #ec4899 0%, #be123c 100%);
}

.phase-card.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.phase-card.completed::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.phase-card.locked {
    opacity: 0.6;
}

.phase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 1rem;
}

.phase-card.active .phase-number {
    background: linear-gradient(135deg, #ec4899 0%, #be123c 100%);
    color: white;
}

.phase-card.completed .phase-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.phase-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.phase-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* Progress Bar */
.progress-bar-container {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, #be123c 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.phase-card.completed .progress-bar-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.phase-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phase-stats .percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 600;
}

.phase-card.active .status-badge {
    background: #fce7f3;
    color: #be123c;
}

.phase-card.completed .status-badge {
    background: #d1fae5;
    color: #065f46;
}

/* Current Focus Card */
.current-focus-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 2px solid #f9a8d4;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.focus-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.focus-content {
    flex: 1;
}

.focus-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #be123c;
    margin: 0 0 0.5rem 0;
}

.focus-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.current-focus-card .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Phase Transition Modal */
.phase-transition-content {
    max-width: 600px;
    text-align: center;
}

.transition-celebration {
    margin: 2rem 0;
}

.celebration-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.transition-message {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.achievements-list {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.achievements-list .achievement-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievements-list .achievement-item::before {
    content: '✅';
    flex-shrink: 0;
}

.next-phase-preview {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.next-phase-preview h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #be123c;
    margin: 0 0 0.75rem 0;
}

.next-phase-preview p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .phase-indicators {
        grid-template-columns: 1fr;
    }

    .current-focus-card {
        flex-direction: column;
        text-align: center;
    }

    .current-focus-card .btn {
        width: 100%;
    }
}

/* ============================================
   Dashboard Overview Styles
   ============================================ */

/* Status at a Glance Cards */
.dashboard-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.glance-card .card-header {
    margin-bottom: 1.5rem;
}

.glance-card .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Health Score Ring */
.health-card {
    text-align: center;
}

.health-score-container {
    position: relative;
    display: inline-block;
    margin: 1rem 0;
}

.health-ring {
    display: block;
}

.health-score-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.health-score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.health-score-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.health-status {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Countdown Display */
.countdown-card {
    text-align: center;
}

.countdown-display {
    margin: 1.5rem 0;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.countdown-label {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.urgency-indicator {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #f3f4f6;
    display: inline-block;
}

/* Budget Health Display */
.budget-health-card {
    display: flex;
    flex-direction: column;
}

.budget-health-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.budget-health-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.budget-status-text {
    font-size: 1.125rem;
    font-weight: 600;
}

.budget-percent {
    font-size: 1.5rem;
    font-weight: 700;
}

.budget-health-bar-container {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.budget-health-bar {
    height: 100%;
    background: #10b981;
    border-radius: 6px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

/* Critical Items */
.critical-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.critical-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.critical-item:hover {
    transform: translateX(4px);
}

.critical-item[data-severity="medium"] {
    border-left-color: #f59e0b;
}

.critical-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.critical-item-content {
    flex: 1;
}

.critical-item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.critical-item-message {
    font-size: 0.875rem;
    color: #6b7280;
}

.critical-item-category {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.no-critical-items {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    font-weight: 600;
    color: #16a34a;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-stat-card .stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.quick-stat-card .stat-content {
    flex: 1;
}

.quick-stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.quick-stat-card .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Activity Preview */
.activity-preview {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-style: italic;
}

/* Section styling enhancements */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

.view-all-link {
    color: #6366f1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-glance {
        grid-template-columns: 1fr;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .health-score-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AI Suggestions Panel Styles
   ============================================ */

.ai-suggestions-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-suggestion-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #6366f1;
    transition: all 0.3s ease;
}

.ai-suggestion-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.suggestion-priority {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-category {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: capitalize;
}

.suggestion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.suggestion-message {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.suggestion-question {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid #6366f1;
}

.suggestion-question strong {
    color: #4b5563;
    font-size: 0.875rem;
}

.suggestion-response-area {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.suggestion-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.suggestion-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.response-saved {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.no-suggestions {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
}

.ai-error {
    text-align: center;
    padding: 2rem 1rem;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1rem;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.error-details {
    font-size: 0.875rem;
    color: #dc2626;
}

/* ============================================
   Invitation System Styles
   ============================================ */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    padding-left: 28px;
    line-height: 1.4;
}

#invite-message-section {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 200px;
        overflow: visible;
    }
}

#invite-message {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

#invite-message:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ============================================
   Claude AI Assistant Chat Widget Styles
   ============================================ */

#claude-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.claude-chat-toggle {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.claude-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.claude-chat-toggle:active {
    transform: translateY(0);
}

.claude-chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.claude-chat-window.open {
    display: flex;
}

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

.claude-chat-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.claude-chat-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.claude-chat-title > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.claude-subtitle {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
}

.claude-chat-actions {
    display: flex;
    gap: 8px;
}

.claude-btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.claude-btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.claude-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.claude-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

.claude-message-user {
    align-self: flex-end;
}

.claude-message-assistant {
    align-self: flex-start;
}

.claude-message-error {
    align-self: flex-start;
}

.claude-message-content {
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.claude-message-user .claude-message-content {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.claude-message-assistant .claude-message-content {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.claude-message-error .claude-message-content {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-bottom-left-radius: 4px;
}

.claude-message-time {
    font-size: 11px;
    color: #6b7280;
    padding: 0 4px;
}

.claude-message-user .claude-message-time {
    text-align: right;
}

.claude-typing-indicator .claude-message-content {
    display: flex;
    gap: 6px;
    padding: 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

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

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

.claude-chat-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.claude-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s ease;
}

.claude-chat-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.claude-send-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.claude-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.claude-send-btn:active {
    transform: scale(0.95);
}

.claude-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar styling for messages container */
.claude-messages::-webkit-scrollbar {
    width: 6px;
}

.claude-messages::-webkit-scrollbar-track {
    background: transparent;
}

.claude-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.claude-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .claude-chat-window {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .claude-chat-toggle {
        bottom: 10px;
        right: 10px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .claude-message {
        max-width: 90%;
    }
}


/* ==========================================
   CATEGORY PAGE LAYOUT - Single Column
   ========================================== */

.category-main-content {
    padding: 24px;
    max-width: 900px;
}

/* Category sections */
.category-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.category-section.highlight {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
}

.section-header:hover {
    opacity: 0.8;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.section-meta {
    color: #6b7280;
    font-size: 14px;
    margin-left: auto;
    margin-right: 12px;
}

.collapse-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.collapse-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Collapsed state */
.category-section.collapsed .section-content {
    display: none;
}

.category-section.collapsed {
    padding: 16px 20px;
}

.category-section:not(.collapsed) .collapse-toggle::before {
    content: '−';
}

.category-section.collapsed .collapse-toggle::before {
    content: '+';
}

.section-content {
    animation: fadeIn 0.3s ease;
}

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

/* Vision Fields */
.vision-field {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.vision-field:last-child {
    border-bottom: none;
}

.vision-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 10px;
}

.vision-value {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 60px;
}

.vision-value p {
    margin: 0;
    color: #1f2937;
    line-height: 1.6;
}

.vision-value .placeholder-text {
    color: #9ca3af;
    font-style: italic;
}

/* Color Palette Styles */
.vision-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    min-height: 50px;
    align-items: center;
}

.vision-colors .placeholder-text {
    color: #9ca3af;
    font-style: italic;
    margin: 8px 0;
}

.color-swatch {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-swatch .remove-color {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.color-swatch:hover .remove-color {
    display: flex;
}

.color-swatch .remove-color:hover {
    background: #dc2626;
}

/* Vision Lists */
.vision-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 40px;
}

.vision-list .placeholder-text {
    color: #9ca3af;
    font-style: italic;
    margin: 8px 0;
}

.vision-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.vision-list-item:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.vision-list-item span {
    color: #1f2937;
    flex: 1;
}

.vision-list-item .remove-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vision-list-item:hover .remove-item {
    opacity: 1;
}

.vision-list-item .remove-item:hover {
    background: #dc2626;
}

/* Special styling for avoid items */
.vision-list-item.avoid-item {
    background: #fef2f2;
    border-color: #fecaca;
}

.vision-list-item.avoid-item:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Special styling for dream wishes */
.vision-list-item.dream-wish {
    background: #fef3c7;
    border-color: #fde68a;
}

.vision-list-item.dream-wish:hover {
    background: #fde68a;
    border-color: #fcd34d;
}

/* Add Controls */
.add-color-controls,
.add-item-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-input,
.vision-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.color-input:focus,
.vision-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-add-small {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-small:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-add-small:active {
    transform: translateY(0);
}

/* Inspiration Gallery */
.inspiration-gallery {
    min-height: 150px;
}

.inspiration-gallery .empty-state {
    text-align: center;
    padding: 40px 20px;
}

/* Budget Info */
.budget-info {
    display: grid;
    gap: 16px;
}

.budget-summary {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.budget-item span {
    color: #6b7280;
}

.budget-item strong {
    color: #1f2937;
    font-size: 1.125rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .category-main-content {
        padding: 16px;
    }

    .category-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .section-meta {
        font-size: 12px;
    }
}

/* ========================================
   CONTEXTUAL PROMPTS STYLING
   ======================================== */

/* Prompts Container (Page-Level) */
.prompts-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prompts-container.empty {
    display: none;
}

/* Prompt Item */
.prompt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1;
}

.prompt-item:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateX(2px);
}

.prompt-item:last-child {
    margin-bottom: 0;
}

/* Prompt Types - Color Coding */
.prompt-item.urgent {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.prompt-item.urgent:hover {
    background: #fee2e2;
}

.prompt-item.important {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.prompt-item.important:hover {
    background: #fef3c7;
}

.prompt-item.nice-to-have {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.prompt-item.nice-to-have:hover {
    background: #dbeafe;
}

/* Prompt Components */
.prompt-icon {
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.prompt-content {
    flex: 1;
    min-width: 0;
}

.prompt-question {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.prompt-action {
    color: #6366f1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 16px;
    flex-shrink: 0;
}

.prompt-item:hover .prompt-action {
    color: #4f46e5;
    text-decoration: underline;
}

.prompt-dismiss {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.prompt-dismiss:hover {
    color: #6b7280;
    background: rgba(0, 0, 0, 0.05);
}

/* Collapse/Expand Section */
.prompts-collapse {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.prompts-collapse button {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.prompts-collapse button:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

/* Inline Prompts (Within Sections) */
.inline-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.inline-prompt:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateX(2px);
}

.inline-prompt-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.inline-prompt-text {
    flex: 1;
    color: #6b7280;
    font-style: italic;
    min-width: 0;
}

.inline-prompt-action {
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.inline-prompt:hover .inline-prompt-action {
    background: #eef2ff;
    color: #4f46e5;
}

/* Vendor Prompts */
.vendor-prompt {
    padding: 12px 14px;
    background: #eff6ff;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    margin-bottom: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-prompt:hover {
    background: #dbeafe;
    transform: translateX(2px);
}

.vendor-prompt-action {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.vendor-prompt:hover .vendor-prompt-action {
    background: #bfdbfe;
    color: #1d4ed8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .prompt-item {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .prompt-action {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        text-align: right;
    }

    .prompt-dismiss {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .prompt-item {
        position: relative;
        padding-right: 36px;
    }

    .inline-prompt {
        flex-wrap: wrap;
    }

    .inline-prompt-action {
        margin-left: auto;
    }
}

/* ========================================
   CLAUDE FOCUS MODE
   ======================================== */

/* Focus Mode Overlay */
.claude-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.claude-focus-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Context Banner (shows current location) */
.claude-context-banner {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.context-text {
    font-weight: 500;
}

/* Focus Mode State for Sidebar */
.assistant-sidebar.focus-mode {
    width: 550px;
    height: 100vh;
    max-height: 100vh;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    border-radius: 0;
}

.assistant-sidebar.focus-mode .assistant-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
}

.assistant-sidebar.focus-mode .assistant-icon {
    font-size: 24px;
}

.assistant-sidebar.focus-mode .assistant-title-text {
    font-size: 18px;
    font-weight: 600;
}

.assistant-sidebar.focus-mode .assistant-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.assistant-sidebar.focus-mode .assistant-action-btn {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.assistant-sidebar.focus-mode .assistant-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.assistant-sidebar.focus-mode .assistant-close-focus-btn {
    display: block !important;
}

.assistant-sidebar.focus-mode #claude-messages {
    height: calc(100vh - 200px);
    max-height: calc(100vh - 200px);
}

/* Header Actions Layout */
.assistant-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Close Focus Button (hidden by default, shown in focus mode) */
.assistant-close-focus-btn {
    display: none;
    font-size: 18px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    transition: all 0.2s;
}

.assistant-close-focus-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Focus Mode Animations */
@keyframes focusModeIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.assistant-sidebar.focus-mode {
    animation: focusModeIn 0.3s ease;
}

/* Mobile Responsive for Focus Mode */
@media (max-width: 768px) {
    .assistant-sidebar.focus-mode {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .claude-focus-overlay {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.8);
    }

    .assistant-sidebar.focus-mode #claude-messages {
        height: calc(100vh - 180px);
        max-height: calc(100vh - 180px);
    }
}

/* Ensure main content dims when in focus mode */
body.claude-focus-active {
    overflow: hidden;
}

body.claude-focus-active .main-content {
    filter: blur(2px);
    pointer-events: none;
}

body.claude-focus-active .nav-tabs {
    filter: blur(2px);
    pointer-events: none;
}

/* ====== STAKEHOLDER INVITATION SYSTEM ====== */

/* Stakeholder Cards */
.stakeholder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stakeholder-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stakeholder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.stakeholder-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.role-badge.financier_active {
    background: #FFE5E5;
    color: #C84848;
}

.role-badge.financier_passive {
    background: #FFD6BA;
    color: #C87848;
}

.role-badge.inner_circle {
    background: #E5D9F2;
    color: #7848C8;
}

.role-badge.family {
    background: #D4F1F4;
    color: #4896C8;
}

.role-badge.friend {
    background: #C8E6C9;
    color: #48C878;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.status-pending {
    background: #FFF9E6;
    color: #C8A848;
}

.status-badge.status-accepted {
    background: #C8E6C9;
    color: #48C878;
}

.status-badge.status-declined {
    background: #FFE5E5;
    color: #C84848;
}

.status-badge.status-revoked {
    background: #E8E8E8;
    color: #6B6B6B;
}

.stakeholder-actions {
    display: flex;
    gap: 0.5rem;
}

.stakeholder-details {
    font-size: 0.9rem;
}

.permission-summary {
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.permission-summary strong {
    color: var(--text-dark);
}

.permission-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.invitation-info {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Category Checkbox Grid */
.category-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.category-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.category-checkbox:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.category-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.category-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--primary);
}

/* Permission Checkboxes */
.permission-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.permission-checkbox:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.permission-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.permission-checkbox span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Role Description */
.role-description {
    font-style: italic;
    color: var(--text-medium);
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--pastel-cream);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-medium);
}

.empty-state p {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.empty-state .help-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Help Text */
.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Button Variants */
.btn-danger {
    background: #FFB4B4;
    color: #C84848;
    border: none;
}

.btn-danger:hover {
    background: #FF9090;
    color: #A83838;
}

/* ================================
   TASK SYSTEM STYLES
   ================================ */

/* Task Statistics Grid */
.task-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Task Section Headers */
.task-section {
    margin-bottom: 2rem;
}

.task-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.task-section-title.overdue {
    color: #ef4444;
}

.task-section-title.pending {
    color: var(--primary);
}

.task-section-title.completed {
    color: #10b981;
}

/* Task Card */
.task-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.task-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.task-card.completed {
    opacity: 0.7;
    background: var(--bg-secondary);
}

.task-card.completed .task-title {
    text-decoration: line-through;
    color: var(--text-light);
}

.task-card.overdue {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.task-card.pending {
    border-left-color: var(--primary);
}

/* Task Checkbox */
.task-checkbox {
    padding-top: 0.25rem;
}

.task-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Task Content */
.task-content {
    flex: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.task-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.task-priority {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.task-payment {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.task-description {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-due-date.overdue {
    color: #ef4444;
    font-weight: 600;
}

/* Task Actions */
.task-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.task-action-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.task-action-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

/* Task Modal */
.task-modal-content {
    max-width: 600px;
    width: 90%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State for Tasks */
.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
