@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Couple Life - Deep Professional Minimalism (Slate & Terracotta) */
    --primary: #A25F4B;      /* Deep Terracotta */
    --primary-light: #D08C7A;
    --primary-dark: #804230;
    
    --secondary: #7D8471;    /* Muted Olive/Sage */
    --secondary-dark: #5A624E;
    
    --bg-main: #EFEFEF;      /* Very light stone gray, not stark white */
    --bg-surface: #E5E5E5;   
    --bg-card: rgba(250, 250, 250, 0.75); /* Cleaner glassmorphism, less white */
    
    --text-main: #2C3539;    /* Gunmetal / Deep Slate */
    --text-muted: #7B8A92;   
    --text-accent: #B84A39;
    
    --gradient-brand: linear-gradient(135deg, #A25F4B 0%, #7D8471 100%);
    --gradient-primary: linear-gradient(135deg, #A25F4B 0%, #B8735F 100%);
    
    /* Elegant curves */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.6);

    /* Finance Soft Palette */
    --fin-green: #27AE60;
    --fin-green-bg: rgba(39, 174, 96, 0.1);
    --fin-red: #E74C3C;
    --fin-red-bg: rgba(231, 76, 60, 0.1);
    --fin-orange: #E67E22;
    --fin-orange-bg: rgba(230, 126, 34, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(162, 95, 75, 0.08) 0px, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(125, 132, 113, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 { font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; letter-spacing: -0.03em; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* Layout */
.app-container {
    display: flex;
    flex: 1;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: transparent;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-decoration: none;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--primary);
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 4rem 4rem 2rem; /* More padding right/bottom, less left due to transparent sidebar */
    position: relative;
}

/* Glassmorphism Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float), var(--shadow-inner);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

.bento-item {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-float), var(--shadow-inner);
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

/* Timeline Feed for Finances */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.05);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 2;
}

.timeline-content {
    background: rgba(255,255,255,0.4);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(217, 136, 128, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(217, 136, 128, 0.5);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* Forms - Modern Apple Style */
.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217, 136, 128, 0.15), inset 0 2px 4px rgba(0,0,0,0.01);
    outline: none;
}

/* Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Dashboard Specifics */
.big-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.05em;
}

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-3, .col-span-4 { grid-column: span 2; }
    .main-content { padding: 2rem; }
}

@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; padding: 1.5rem; border-right: none; }
    .nav-links { flex-direction: row; overflow-x: auto; padding-bottom: 0.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1; }
    .main-content { padding: 1rem; }
}
/* Finance Soft Styles */
.finance-status-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-success { background: var(--fin-green-bg); color: var(--fin-green); border: 1px solid rgba(39, 174, 96, 0.2); }
.status-danger { background: var(--fin-red-bg); color: var(--fin-red); border: 1px solid rgba(231, 76, 60, 0.2); }
.status-warning { background: var(--fin-orange-bg); color: var(--fin-orange); border: 1px solid rgba(230, 126, 34, 0.2); }

.soft-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.soft-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
