:root {
    --primary: #FFB6C1; /* Pastel Pink */
    --primary-dark: #FF9AA2;
    --secondary: #B5EAD7; /* Pastel Green */
    --accent: #C7CEEA; /* Pastel Blue */
    --warning: #FFDAC1; /* Pastel Orange */
    --danger: #FF9AA2;
    --success: #B5EAD7;
    --bg: #FFF5F8;
    --card-bg: #FFFFFF;
    --text-main: #4A4A4A;
    --text-muted: #8E8E8E;
    --border: #FEE2E9;
    --shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Auth Styles */
#auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F8 0%, #FEE2E9 100%);
}

.auth-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.6s var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: #FFFBFC;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    background: #fff;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

/* Layout */
#main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
}

.sidebar {
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.sidebar-nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 16px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.nav-item:hover {
    background: #FFF5F8;
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.details p {
    font-weight: 600;
    font-size: 0.9rem;
}

.details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Area */
.content {
    padding: 2.5rem;
    overflow-y: auto;
}

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

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.current-date {
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

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

.income .stat-icon { background: #E8F5E9; color: #2E7D32; }
.expense .stat-icon { background: #FFEBEE; color: #C62828; }
.balance .stat-icon { background: #E3F2FD; color: #1565C0; }

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-details span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-details h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.view {
    animation: fadeIn 0.4s ease;
}

/* Forms in Content */
.card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

tr:hover {
    background: #FFF9FA;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-income { background: #E8F5E9; color: #2E7D32; }
.tag-expense { background: #FFEBEE; color: #C62828; }

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.edit-btn { background: #E3F2FD; color: #1565C0; }
.delete-btn { background: #FFEBEE; color: #C62828; }

/* Report Specific Styles */
.report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 5px solid transparent;
}

.report-card.income { border-top-color: #50E3C2; }
.report-card.expense { border-top-color: #FF7675; }
.report-card.savings { border-top-color: #74B9FF; }

.report-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.report-card h2 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    font-weight: 700;
}

.category-distribution {
    margin-top: 2rem;
}

.dist-item {
    margin-bottom: 1.5rem;
}

.dist-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.progress-container {
    height: 12px;
    background: #F0F0F0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    transition: width 1s ease-in-out;
}
