@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-heavy: 0 15px 35px rgba(31, 38, 135, 0.2);
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --accent: #16213e;
}

body.light-theme {
  --bg-color: #f0f0f0;
  --text-color: #121212;
  --card-bg: rgba(0, 0, 0, 0.05);
  --accent-color: #007bff;
}


/* .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s ease, color 0.3s;
}

.theme-toggle:hover {
    background: var(--accent-gradient, linear-gradient(to right, #43e97b, #38f9d7));
    color: #fff;
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 1.2rem;
    pointer-events: none;
} */


body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.2);
    }
}

.header h1 {
    font-size: 4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    animation: slideUp 1s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Login Form */
.login-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 50px;
    position: relative;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.form-group #aadhaar{
    margin-bottom: 15px;
    
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: 5px
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
}

/* Dashboard */
.dashboard {
    display: none;
    animation: fadeIn 0.8s ease-out;
}

.dashboard.show {
    display: block;
}

.dashboard-header {
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.module-card {
    padding: 40px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover::before {
    opacity: 0.1;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.module-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.module-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-size: 15px;
}

.module-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Module Containers */
.module-container {
    display: none;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 20px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.module-container.active {
    display: block;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Chatbot Enhancements */
.chatbot-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message {
    margin-bottom: 20px;
    padding: 16px 24px;
    border-radius: 18px;
    max-width: 85%;
    position: relative;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.user-message {
    background: var(--primary-gradient);
    color: white;
    margin-left: auto;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.send-btn {
    padding: 16px 24px;
    background: var(--success-gradient);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.voice-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(240, 147, 251, 0.5);
}

.voice-btn.recording {
    animation: pulse-record 1s infinite;
}

@keyframes pulse-record {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 147, 251, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(240, 147, 251, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(240, 147, 251, 0);
    }
}

/* Expense Form */
.expense-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.expense-item .amount {
    font-weight: 600;
    color: #4facfe;
}



/* Enhanced Budget Module */
.budget-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.budget-chart {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    text-align: center;
}

/* Investment Module */
.investment-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    color: black
}

.investment-result {
    background: rgba(79, 172, 254, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

/* Scam Alert Module */
.scam-list {
    display: grid;
    gap: 20px;
}

.scam-item {
    background: rgba(250, 112, 154, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(250, 112, 154, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.scam-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(250, 112, 154, 0.2);
}

.scam-item h4 {
    color: #fa709a;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}
#scamSearchInput{
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.scam-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Digital Vault */
.vault-upload {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.vault-upload:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
}

.vault-files {
    display: grid;
    gap: 15px;
}

.vault-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.vault-file:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn {
    background: var(--success-gradient);
    color: white;
}

.delete-btn {
    background: var(--danger-gradient);
    color: white;
}

.download-btn:hover,
.delete-btn:hover {
    transform: translateY(-2px);
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.loading.show {
    display: block;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Messages */
.error-message {
    background: rgba(250, 112, 154, 0.1);
    color: #fa709a;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(250, 112, 154, 0.3);
    backdrop-filter: blur(10px);
}

.success-message {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
}

/* Logout Button */
.logout-btn {
    background: var(--danger-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-size: 25px;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(250, 112, 154, 0.3);
}

/* Advanced Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.1;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modals */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideInFromTop 0.4s ease-out;
    color: white;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: white;
}

.modal-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* UPI Modal Specifics */
.upi-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.upi-payment-status {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.upi-payment-status.success {
    color: #4facfe;
}

.upi-payment-status.failed {
    color: #fa709a;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(100%);
    animation: slideInToast 0.5s forwards, fadeOutToast 0.5s 2.5s forwards;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.success {
    border-left: 5px solid #4facfe;
}

.toast.error {
    border-left: 5px solid #fa709a;
}

.toast.info {
    border-left: 5px solid #667eea;
}

/* Financial Goals Module Specific Styles */
.goal-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.goals-list {
    display: grid;
    gap: 20px;
}

.goal-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.goal-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4facfe;
}

.goal-item p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.goal-progress-bar {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 15px;
    overflow: hidden;
    margin-top: 15px;
}

.goal-progress {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.goal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.goal-actions .btn {
    width: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Expense Analyzer Module Specific Styles */
.expense-input-area textarea {
    min-height: 150px;
    margin-bottom: 20px;
}

.expense-summary {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
}

.expense-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-item span {
    color: rgba(255, 255, 255, 0.8);
}

.expense-item .amount {
    font-weight: 600;
    color: #4facfe;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .budget-form,
    .investment-form,
    .goal-form,
    .expense-form {
        /* Added .goal-form, .expense-form */
        grid-template-columns: 1fr;
    }

    .login-container {
        padding: 30px;
    }

    .module-container {
        padding: 20px;
    }

    .module-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
    }
}

/* Micro-interactions */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
}

/* Advanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutToast {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
