/* Root Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #f0f4f8;
    --text-dark: #1a202c;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-dark);
}

/* Auth Container */
.auth-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: white;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left Panel */
.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40%;
    min-width: 400px;
}

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 40px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.logo-placeholder:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.brand-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-section p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.feature i {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Section */
.form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

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

/* Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

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

.auth-form h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: rgba(102, 126, 234, 0.02);
}

.input-wrapper input:focus ~ i {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.error-msg {
    display: block;
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-msg.show {
    display: block;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    background: var(--error-color);
    transition: var(--transition);
}

.strength-bar.weak {
    width: 33%;
    background: var(--error-color);
}

.strength-bar.medium {
    width: 66%;
    background: var(--warning-color);
}

.strength-bar.strong {
    width: 100%;
    background: var(--success-color);
}

/* Remember & Forgot */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 25px 0;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    color: var(--text-dark);
    font-weight: 500;
}

.remember input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 25px;
    cursor: pointer;
    color: var(--text-dark);
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(102, 126, 234, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.social-btn i {
    font-size: 16px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--primary-dark);
}

.switch-form {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-panel {
        width: 35%;
        padding: 40px 25px;
    }

    .form-section {
        padding: 40px 35px;
    }

    .brand-section h1 {
        font-size: 26px;
    }

    .logo-placeholder {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .auth-panel {
        width: 100%;
        min-width: unset;
        padding: 40px 20px;
    }

    .form-section {
        padding: 30px 20px;
        width: 100%;
    }

    .brand-section h1 {
        font-size: 24px;
    }

    .logo-placeholder {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }

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

    .social-login {
        grid-template-columns: 1fr;
    }

    .auth-form h2 {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        padding: 30px 15px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .brand-section h1 {
        font-size: 22px;
    }

    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .features {
        gap: 12px;
        margin-top: 30px;
    }

    .feature {
        font-size: 12px;
    }

    .auth-form h2 {
        font-size: 20px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .input-wrapper input {
        font-size: 13px;
    }

    .btn-primary {
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* ============================= */
/* DASHBOARD STYLES */
/* ============================= */

.dashboard-body {
    background: #f8f9fa;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    cursor: pointer;
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.sidebar-brand h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.nav-link i {
    font-size: 18px;
    min-width: 20px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    margin-top: auto;
    font-family: 'Poppins', sans-serif;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Main Dashboard */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px 6px;
    transition: var(--transition);
    z-index: 2000;
}

.menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.search-box {
    position: relative;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--error-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.mobile-logout-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--error-color);
    transition: var(--transition);
    padding: 8px 12px;
}

.mobile-logout-btn:hover {
    color: var(--error-color);
    transform: scale(1.1);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.welcome-content p {
    color: var(--text-light);
    font-size: 14px;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Balance Section */
.balance-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.balance-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: none;
}

.balance-card.secondary {
    background: white;
}

.balance-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header i {
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.card-header i:hover {
    transform: scale(1.1);
}

.card-amount {
    margin-bottom: 15px;
}

.currency {
    font-size: 16px;
    opacity: 0.8;
}

.amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.75;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.account-number {
    font-weight: 600;
    letter-spacing: 1px;
}

.card-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    border-radius: 2px;
}

.progress-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Transaction History */
.transaction-history-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.transaction-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.transaction-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.transaction-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.transaction-item.withdrawal {
    border-left-color: var(--error-color);
}

.transaction-item.deposit {
    border-left-color: var(--success-color);
}

.transaction-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.transaction-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.transaction-item.withdrawal .transaction-item-icon {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error-color);
}

.transaction-item.deposit .transaction-item-icon {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.transaction-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-item-type {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.transaction-item-user {
    font-size: 12px;
    color: var(--text-light);
}

.transaction-item-date {
    font-size: 12px;
    color: var(--text-light);
}

.transaction-item-amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.transaction-item.withdrawal .transaction-item-amount {
    color: var(--error-color);
}

.transaction-item.deposit .transaction-item-amount {
    color: var(--success-color);
}

/* Stats and Activity Grid */
.stats-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Stats Section */
.stats-section,
.activity-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.stats-section h3,
.activity-section h3,
.transactions-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.income {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-color);
}

.stat-icon.expense {
    background: rgba(245, 101, 101, 0.15);
    color: var(--error-color);
}

.stat-icon.savings {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
}

.stat-icon.investments {
    background: rgba(237, 137, 54, 0.15);
    color: var(--warning-color);
}

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

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Activity Section */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--secondary-color);
    border-radius: 8px;
    transition: var(--transition);
}

.activity-item:hover {
    background: #e8ecf3;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.activity-amount {
    font-size: 13px;
    font-weight: 700;
}

.activity-amount.positive {
    color: var(--success-color);
}

.activity-amount.negative {
    color: var(--error-color);
}

/* Transactions Section */
.transactions-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

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

.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.export-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.transactions-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-input {
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.add-transaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    margin-left: auto;
}

.add-transaction-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.transactions-table-wrapper {
    overflow-x: auto;
}

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

.transactions-table thead {
    background: var(--secondary-color);
}

.transactions-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.transaction-row:hover {
    background: var(--secondary-color);
}

.transaction-date {
    color: var(--text-light);
    font-weight: 500;
}

.transaction-desc {
    color: var(--text-dark);
    font-weight: 600;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.category-badge.entertainment {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
}

.category-badge.dining {
    background: rgba(237, 137, 54, 0.15);
    color: var(--warning-color);
}

.category-badge.health {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-color);
}

.category-badge.shopping {
    background: rgba(237, 137, 54, 0.15);
    color: var(--warning-color);
}

.category-badge.transfer {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
}

.category-badge.income {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-color);
}

.category-badge.utilities {
    background: rgba(245, 101, 101, 0.15);
    color: var(--error-color);
}

.category-badge.other {
    background: rgba(113, 128, 150, 0.15);
    color: var(--text-light);
}

.transaction-amount {
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--error-color);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.completed {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-color);
}

.status-badge.pending {
    background: rgba(237, 137, 54, 0.15);
    color: var(--warning-color);
}

.status-badge.failed {
    background: rgba(245, 101, 101, 0.15);
    color: var(--error-color);
}

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

.edit-transaction,
.delete-transaction {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: var(--transition);
}

.edit-transaction:hover {
    color: var(--primary-color);
}

.delete-transaction:hover {
    color: var(--error-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-form {
    padding: 20px;
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

.modal-cancel,
.modal-save {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.modal-cancel {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.modal-cancel:hover {
    background: var(--border-color);
}

.modal-save {
    background: var(--primary-color);
    color: white;
}

.modal-save:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-activity-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        transition: width 0.3s ease, padding 0.3s ease;
        z-index: 1500;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        display: flex;
        flex-direction: column;
    }

    .sidebar.active {
        width: 280px;
        padding: 30px 20px;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 40px;
        cursor: pointer;
    }

    .sidebar-nav {
        flex: 1;
    }

    .sidebar-nav ul {
        list-style: none;
    }

    .sidebar-nav li {
        margin-bottom: 8px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 16px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        border-radius: 8px;
        transition: var(--transition);
        font-weight: 500;
        font-size: 14px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        color: white;
    }

    .nav-link i {
        font-size: 18px;
        min-width: 20px;
    }

    .logout-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: var(--transition);
        margin-top: auto;
        font-family: 'Poppins', sans-serif;
        width: 100%;
        justify-content: flex-start;
    }

    .logout-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .mobile-logout-btn {
        display: block !important;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: block !important;
    }

    .dashboard-content {
        padding: 20px;
    }

    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-actions {
        width: 100%;
        gap: 8px;
    }

    .quick-action-btn span {
        display: inline;
    }

    .quick-action-btn {
        flex: 1;
        justify-content: center;
        padding: 12px;
    }

    .quick-action-btn i {
        display: none;
    }

    .search-box {
        width: 150px;
    }

    .search-box input {
        font-size: 12px;
    }

    .dashboard-header {
        flex-direction: row;
        gap: 10px;
        padding: 12px 15px;
        align-items: center;
    }

    .header-left {
        gap: 10px;
        width: auto;
    }

    .page-title {
        font-size: 18px;
    }

    .header-right {
        gap: 10px;
        width: auto;
    }

    .user-profile {
        display: none;
    }

    .user-name {
        display: none;
    }

    .transactions-table {
        font-size: 12px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px 8px;
    }

    .transaction-history-section {
        padding: 20px;
    }

    .transaction-item {
        flex-direction: column;
        gap: 10px;
    }

    .transaction-item-info {
        width: 100%;
    }

    .transaction-item-amount {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 0;
        padding: 0;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        transition: width 0.3s ease, padding 0.3s ease;
        z-index: 1500;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        display: flex;
        flex-direction: column;
    }

    .sidebar.active {
        width: 250px;
        padding: 30px 20px;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 40px;
        cursor: pointer;
    }

    .sidebar-nav {
        flex: 1;
    }

    .sidebar-nav ul {
        list-style: none;
    }

    .sidebar-nav li {
        margin-bottom: 8px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 16px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        border-radius: 8px;
        transition: var(--transition);
        font-weight: 500;
        font-size: 14px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        color: white;
    }

    .nav-link i {
        font-size: 18px;
        min-width: 20px;
    }

    .logout-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: var(--transition);
        margin-top: auto;
        font-family: 'Poppins', sans-serif;
        width: 100%;
        justify-content: flex-start;
    }

    .logout-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .mobile-logout-btn {
        display: block !important;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: block !important;
    }

    .dashboard-header {
        flex-direction: row;
        gap: 12px;
        padding: 12px 15px;
        align-items: center;
        justify-content: space-between;
    }

    .header-left {
        gap: 10px;
        width: auto;
        justify-content: flex-start;
        align-items: center;
    }

    .page-title {
        font-size: 18px;
        margin: 0;
    }

    .header-right {
        width: auto;
        justify-content: flex-end;
        gap: 8px;
    }

    .search-box {
        display: none;
    }

    .user-profile {
        display: none;
    }

    .user-name {
        display: none;
    }

    .notification-btn {
        font-size: 16px;
    }

    .mobile-logout-btn {
        font-size: 18px;
        padding: 4px 8px;
    }

    .dashboard-content {
        padding: 15px;
    }

    .welcome-content h2 {
        font-size: 22px;
    }

    .balance-section {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        flex-wrap: wrap;
    }

    .quick-action-btn {
        flex: 1;
        min-width: 80px;
    }

    .quick-action-btn i {
        display: none;
    }

    .balance-card {
        padding: 15px;
    }

    .amount {
        font-size: 24px;
    }

    .stats-section,
    .activity-section,
    .transactions-section {
        padding: 15px;
    }

    .transactions-table-wrapper {
        font-size: 11px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 8px 4px;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
}

