/* Color Variables */
:root {
    --primary-lightest: rgb(221, 230, 237);
    --primary-light: rgb(219, 226, 239);
    --primary-medium: #3E5879;
    --primary-dark: #213555;
    --text-dark: #2c3e50;
    --text-medium: rgb(63, 114, 175);
    --text-light: rgb(157, 178, 191);
    --text-white: #ffffff;
    --border-color: rgb(219, 226, 239);
    --shadow: rgba(63, 114, 175, 0.1);
}

/* Global Styles */
body {
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #3E5879;

}

.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, black, #3E5879);
    color: var(--text-white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px var(--shadow);
}

    .welcome-section h2 {
        font-weight: 600;
        font-size: 1.8rem;
    }

/* Cards Styling */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px var(--shadow);
    }

.card-body {
    padding: 1.5rem;
}

.shadow-sm {
    box-shadow: 0 4px 12px var(--shadow);
}

/* Customer Details */
.customer-details .card {
    margin-bottom: 2rem;
    background-color: #ffffff;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .profile-header h4 {
        color: var(--text-dark);
        font-weight: 600;
    }

.detail-card {
    background-color: rgb(238, 244, 255);
    padding: 1rem;
    border-radius: 8px;
    height: 100%;
}

.detail-icon {
    background-color: var(--primary-dark);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

    .detail-icon i {
        font-size: 1.2rem;
    }

.detail-label {
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 500;
    color: var(--text-dark);
}

/* Info Cards */
.info-card {
    height: 100%;
    background-color: rgb(238, 244, 255);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-dark);
}

.info-card .card-title {
    color: var(--text-medium);
    font-size: 1.1rem;
    font-weight: 500;
}

.info-card h2 {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Account Cards */
.account-card {
    background: linear-gradient(135deg, var(--primary-dark), #225ca6);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
}

.account-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

    .account-icon i {
        font-size: 1.5rem;
    }

.account-balance {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.account-number {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .section-header h4 {
        color: var(--text-dark);
        font-weight: 600;
    }

/* Buttons */
.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--text-dark);
        border-color: var(--text-dark);
    }

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

    .btn-outline-primary:hover, .btn-outline-primary:focus {
        background-color: var(--primary-dark);
        color: white;
        border-color: var(--primary-dark);
    }

/* Actions Section */
.actions-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(238, 244, 255);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

    .action-button:hover {
        background-color: var(--primary-light);
        transform: translateY(-3px);
        box-shadow: 0 8px 15px var(--shadow);
    }

.action-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

    .action-icon i {
        font-size: 1.75rem;
    }

.action-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.action-description {
    font-size: 0.85rem;
    color: var(--text-dark);
    text-align: center;
}

/* Transactions Section */
.transactions-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.shadow-sm {
    box-shadow: 0 4px 12px var(--shadow);
}

/* Customer Details */
.customer-details .card {
    margin-bottom: 2rem;
    background-color: #ffffff;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .profile-header h4 {
        color: var(--text-dark);
        font-weight: 600;
    }

.detail-card {
    background-color: rgb(238, 244, 255);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgb(238, 244, 255);
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.detail-icon {
    background-color: rgb(63, 114, 175);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: var(--primary-dark);
    color: white;
}

.info-card .card-title {
    color: var(--text-medium);
    font-size: 1.1rem;
    font-weight: 500;
}

.transaction-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.transaction-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.account-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

    .account-icon i {
        font-size: 1.5rem;
    }

.transaction-amount {
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0.5rem 0;
}

.account-number {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.account-actions {
    margin-top: 1rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .section-header h4 {
        color: var(--text-dark);
        font-weight: 600;
    }

/* Support Section */
.support-section .card {
    background-color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--text-dark);
        border-color: var(--text-dark);
    }

.view-more-btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background-color: rgb(238, 244, 255);
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

    .view-more-btn:hover {
        background-color: var(--primary-light);
        color: var(--primary-dark);
    }

/* Support Section */
.support-section .card {
    background-color: white;
}

.support-section .card-icon {
    color: var(--primary-dark);
}

/* Footer */
.border-top {
    border-top-color: var(--border-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .profile-header button {
            margin-top: 1rem;
        }

    .account-card {
        margin-bottom: 1rem;
    }
}
