/* Customer Portal Styles */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FF8C00;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #1a202c;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
}

/* Portal Header */
.portal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Portal Navigation */
.portal-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.nav-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    list-style: none;
    overflow-x: auto;
    gap: 0;
}

.nav-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--light-color);
}

.nav-item i {
    font-size: 1.1rem;
}

/* Main Content */
.portal-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 160px);
}

.portal-tab {
    display: none;
}

.portal-tab.active {
    display: block;
}

.tab-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-header h2 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern Banking Dashboard Styles */

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.account-number-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.account-number-display i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.account-number-display span {
    color: white;
    font-weight: 500;
}

.account-number-display #dashboardAccountNumber {
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.last-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* Financial Overview Section */
.overview-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.overview-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-card.primary {
    border-left: 6px solid var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.overview-card.primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.card-icon.savings {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.card-icon.insurance {
    background: linear-gradient(135deg, #805ad5, #9f7aea);
}

.card-trend span {
    transition: color 0.3s ease;
}

.card-icon.loan {
    background: linear-gradient(135deg, #3182ce, #4299e1);
}

.card-icon.credit {
    background: linear-gradient(135deg, #d69e2e, #ecc94b);
}

.card-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-amount {
    margin-bottom: 1rem;
}

.card-amount span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    width: fit-content;
}

.card-trend.positive {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.card-trend.neutral {
    background: rgba(113, 128, 150, 0.1);
    color: #718096;
}

.card-trend.negative {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Dashboard Bottom Section */
.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Quick Actions Section */
.quick-actions-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-card {
    background: var(--background-light);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: white;
    font-size: 1.25rem;
}

.action-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.action-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Recent Activity Section */
.recent-activity-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.activity-container {
    margin-top: 1.5rem;
}

.activity-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.activity-filter {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.activity-filter.active,
.activity-filter:hover {
    background: var(--primary-color);
    color: white;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    background: var(--background-light);
}

.activity-item:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.activity-icon.deposit {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.activity-icon.interest {
    background: linear-gradient(135deg, #d69e2e, #ecc94b);
}

.activity-icon.transfer {
    background: linear-gradient(135deg, #3182ce, #4299e1);
}

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

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.activity-account {
    color: var(--text-secondary);
    font-weight: 500;
}

.activity-date {
    color: var(--text-light);
}

.activity-amount {
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-amount.deposit {
    color: #38a169;
}

.activity-amount.interest {
    color: #d69e2e;
}

.activity-amount.transfer {
    color: #3182ce;
}

.activity-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

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

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Modern My Accounts Tab Styles */

/* Accounts Header */
.accounts-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accounts-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accounts-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

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

/* Accounts Overview */
.accounts-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.accounts-overview .overview-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.accounts-overview .overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-card.total-assets {
    border-left: 6px solid var(--primary-color);
}

.overview-card.active-accounts {
    border-left: 6px solid var(--success-color);
}

.overview-card.monthly-interest {
    border-left: 6px solid var(--warning-color);
}

.overview-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.total-assets .overview-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.active-accounts .overview-icon {
    background: linear-gradient(135deg, var(--success-color), #48bb78);
}

.monthly-interest .overview-icon {
    background: linear-gradient(135deg, var(--warning-color), #ecc94b);
}

.overview-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.overview-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.overview-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    width: fit-content;
}

.overview-trend.positive {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.overview-trend.neutral {
    background: rgba(113, 128, 150, 0.1);
    color: #718096;
}

/* Account Categories */
.accounts-categories {
    margin-bottom: 3rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.category-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.category-tab:hover {
    color: var(--text-primary);
    background: var(--background-light);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
}

.category-tab i {
    font-size: 1rem;
}

/* Accounts Sections */
.accounts-section {
    display: none;
    margin-bottom: 3rem;
}

.accounts-section.active {
    display: block;
}

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

.accounts-section .section-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Enhanced Account Cards */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.account-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.account-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.account-card.primary {
    border-left: 6px solid var(--primary-color);
}

.account-card.external {
    border-left: 6px solid var(--success-color);
}

.account-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.account-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.account-icon.savings {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.account-icon.external {
    background: linear-gradient(135deg, #3182ce, #4299e1);
}

.account-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.account-number {
    margin: 0 0 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.account-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-status.active {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.account-status.connected {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

.account-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: var(--background-light);
    color: var(--text-secondary);
}

.account-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

.account-menu-dropdown.show {
    display: block;
}

.account-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.account-menu-dropdown a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.account-balance {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.account-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.account-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Account Performance */
.account-performance {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.performance-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

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

.performance-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.performance-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.chart-bar {
    width: 60px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.chart-value {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.performance-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modern Tab Headers for All Tabs */
.loans-header,
.transactions-header,
.payments-header,
.transfers-header,
.profile-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.loans-title h1,
.transactions-title h1,
.payments-title h1,
.transfers-title h1,
.profile-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loans-subtitle,
.transactions-subtitle,
.payments-subtitle,
.transfers-subtitle,
.profile-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.loans-actions,
.transactions-actions,
.payments-actions,
.transfers-actions,
.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Overview Cards for All Tabs */
.loans-overview,
.transactions-overview,
.payments-overview,
.transfers-overview,
.profile-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.loans-overview .overview-card,
.transactions-overview .overview-card,
.payments-overview .overview-card,
.transfers-overview .overview-card,
.profile-overview .overview-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.loans-overview .overview-card:hover,
.transactions-overview .overview-card:hover,
.payments-overview .overview-card:hover,
.transfers-overview .overview-card:hover,
.profile-overview .overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Specific Tab Overview Card Colors */
.overview-card.total-loans {
    border-left: 6px solid var(--primary-color);
}

.overview-card.outstanding-balance {
    border-left: 6px solid var(--warning-color);
}

.overview-card.next-payment {
    border-left: 6px solid var(--success-color);
}

.overview-card.total-transactions {
    border-left: 6px solid var(--primary-color);
}

.overview-card.total-volume {
    border-left: 6px solid var(--success-color);
}

.overview-card.avg-transaction {
    border-left: 6px solid var(--warning-color);
}

.overview-card.loan-payments {
    border-left: 6px solid var(--primary-color);
}

.overview-card.savings-deposits {
    border-left: 6px solid var(--success-color);
}

.overview-card.payment-methods {
    border-left: 6px solid var(--warning-color);
}

.overview-card.transfer-limit {
    border-left: 6px solid var(--primary-color);
}

.overview-card.transfer-fee {
    border-left: 6px solid var(--warning-color);
}

.overview-card.processing-time {
    border-left: 6px solid var(--success-color);
}

.overview-card.account-status {
    border-left: 6px solid var(--success-color);
}

.overview-card.last-update {
    border-left: 6px solid var(--warning-color);
}

.overview-card.security-level {
    border-left: 6px solid var(--primary-color);
}

/* Transfers Tab Specific Styles */
.overview-card.total-transfers {
    border-left: 6px solid #4facfe;
}

.overview-card.total-amount {
    border-left: 6px solid #43e97b;
}

.overview-card.total-fees {
    border-left: 6px solid #fa7093;
}

.transfers-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.section-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 0;
}

.section-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-filters select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

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

.transfers-grid {
    display: grid;
    gap: 1.5rem;
}

.transfer-item {
    background: white;
    border: 2px solid #f7fafc;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transfer-item:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.transfer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

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

.transfer-info {
    flex: 1;
}

.transfer-amount {
    text-align: right;
}

.transfer-amount .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.transfer-amount .fees {
    font-size: 0.9rem;
    color: #718096;
}

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

.transfer-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transfer-detail label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.transfer-detail span {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 500;
}

.transfer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transfer-status.completed {
    background: #c6f6d5;
    color: #22543d;
}

.transfer-status.pending {
    background: #fef5e7;
    color: #744210;
}

.transfer-status.failed {
    background: #fed7d7;
    color: #742a2a;
}

.transfer-status.cancelled {
    background: #e2e8f0;
    color: #2d3748;
}

.transfer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #718096;
}

.transfer-reference {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2d3748;
}

/* Profile Forms Layout */
.profile-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-info, .change-password {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-form, .password-form {
    background: transparent;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Ensure Profile Tab is Visible */
#profile.portal-tab.active {
    display: block !important;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem;
}

#profile.portal-tab {
    background: #f8f9fa;
    min-height: 100vh;
}

#profile .profile-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#profile .profile-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

#profile .profile-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}



/* Profile Tab - Same as Working Tabs */
#profile.portal-tab {
    display: none;
    background: var(--bg-light);
    padding: 2rem;
}

#profile.portal-tab.active {
    display: block;
}

#profile .profile-header,
#profile .profile-overview,
#profile .profile-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}



/* Enhanced Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Enhanced Form Styling */
.payment-forms,
.transfer-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.payment-form,
.transfer-form {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.payment-form h3,
.transfer-form h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Enhanced Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

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

.btn-success {
    background: var(--success-color);
    color: white;
}

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

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d69e2e;
    transform: translateY(-2px);
}

/* Enhanced Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Enhanced Method Tabs */
.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.method-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.method-tab:hover {
    color: var(--text-primary);
    background: var(--background-light);
}

.method-tab.active {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Filters */
.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select,
.filter-date {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    color: var(--text-primary);
    min-width: 150px;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .loans-header,
    .transactions-header,
    .payments-header,
    .transfers-header,
    .profile-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .loans-title h1,
    .transactions-title h1,
    .payments-title h1,
    .transfers-title h1,
    .profile-title h1 {
        font-size: 2rem;
    }
    
    .loans-overview,
    .transactions-overview,
    .payments-overview,
    .transfers-overview,
    .profile-overview {
        grid-template-columns: 1fr;
    }
    
    .profile-forms,
    .payment-forms,
    .transfer-forms {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select,
    .filter-date {
        min-width: auto;
    }
}

.account-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--success-color);
    transition: var(--transition);
}

.account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

.account-type {
    font-weight: 600;
    color: var(--text-primary);
}

.account-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.account-status.active {
    background: #d4edda;
    color: #155724;
}

.account-status.dormant {
    background: #fff3cd;
    color: #856404;
}

.account-balance {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 1rem 0;
}

.account-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
}

.account-detail {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Loans Grid */
.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.loan-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--info-color);
    transition: var(--transition);
}

.loan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

.loan-type {
    font-weight: 600;
    color: var(--text-primary);
}

.loan-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.loan-status.active {
    background: #d1ecf1;
    color: #0c5460;
}

.loan-status.closed {
    background: #d4edda;
    color: #155724;
}

.loan-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.loan-amount {
    text-align: center;
}

.amount-label {
    font-size: 0.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.loan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Schedule List */
.schedule-list {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:nth-child(even) {
    background: var(--light-color);
}

.schedule-header {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.schedule-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.schedule-status.pending {
    background: #fff3cd;
    color: #856404;
}

.schedule-status.paid {
    background: #d4edda;
    color: #155724;
}

.schedule-status.overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Transactions */
.transactions-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-select, .filter-date {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 150px;
}

.transactions-list {
    max-height: 500px;
    overflow-y: auto;
}

.transaction-item {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:nth-child(even) {
    background: var(--light-color);
}

.transaction-header {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.transaction-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.transaction-type.deposit {
    background: #d4edda;
    color: #155724;
}

.transaction-type.withdrawal {
    background: #f8d7da;
    color: #721c24;
}

.transaction-type.transfer {
    background: #d1ecf1;
    color: #0c5460;
}

.transaction-type.payment {
    background: #fff3cd;
    color: #856404;
}

/* Application Steps */
.application-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.application-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-color);
}

.step.completed .step-number {
    background: var(--success-color);
}

.step-title {
    font-size: 0.9rem;
    color: var(--dark-color);
    text-align: center;
    font-weight: 500;
}

/* Form Steps */
.form-step {
    display: none;
}

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

.application-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Application Summary */
.application-summary {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.product-card.selected {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.product-icon i {
    color: white;
    font-size: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-rate {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 2rem;
}

.method-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
}

.method-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    color: var(--text-primary);
    font-weight: 500;
}

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

.payment-form {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

/* Transfer Forms */
.transfer-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.transfer-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.transfer-form h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Profile Section */
.profile-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.profile-info, .change-password {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile-info h3, .change-password h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--light-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

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

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-primary);
    font-weight: 600;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Notifications */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-main {
        padding: 1rem;
    }
    
    .nav-list {
        padding: 0 1rem;
    }
    
    .nav-item {
        padding: 0.75rem 1rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Accounts Tab Responsive */
    .accounts-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .accounts-title h1 {
        font-size: 2rem;
    }
    
    .accounts-overview {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .transfer-forms {
        grid-template-columns: 1fr;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
    }
    
    .loans-grid {
        grid-template-columns: 1fr;
    }
    
    .transfers-overview {
        grid-template-columns: 1fr;
    }
    
    .transfers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-filters {
        justify-content: center;
    }
    
    .application-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .application-steps::before {
        display: none;
    }
    
    .step {
        background: none;
        padding: 0;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select, .filter-date {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-section h1 {
        font-size: 1.2rem;
    }
    
    .portal-main {
        padding: 0.5rem;
    }
    
    .application-form,
    .payment-form,
    .transfer-form,
    .profile-info,
    .change-password {
        padding: 1rem;
    }
}
