/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

/* Header styles Semi Transparent BG with blur effect */
header {
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

/* Styles for main page header */
.main-page header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#account-holder {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
}

.bank-info {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.bank-name {
    text-align: left;
}

.bank-name h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bank-name h3 {
    font-size: 1rem;
    font-weight: normal;
}

#balance-info {
    flex: 1;
    text-align: right;
    font-size: 0.9rem;
}

/* Removed blur effect for balance */

/* Styles for credit, debit, and transfer page headers */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.back-button {
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid white;
    border-radius: 15px;
    transition: all 0.3s ease;
    background-color: rgba(231, 76, 60, 0.7);
}

.back-button:hover {
    background-color: rgba(231, 76, 60, 1);
}

.header-title {
    font-size: 2rem;
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-button {
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: rgba(52, 152, 219, 0.7);
}

.nav-button:hover {
    background-color: rgba(52, 152, 219, 1);
}

/* Main content styles */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

button {
    display: block;
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: rgba(41, 128, 185, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(-1px);
}

/* Background images for specific pages */
.main-page { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/bgpicmain.jpg'); 
}
.credit-page { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/bgpiccredit.jpg'); 
}
.debit-page { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/bgdebit.jpg'); 
}
.transfer-page { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/bgtransfer.jpg'); 
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 1.2rem;
    font-weight: 600;
    color: #333;
}

input, select {
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Styles for non-copyable account number */
.non-copyable {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1rem;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: default;
    margin-top: 0.5rem;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: bold;
}

#acknowledgment {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background-color: rgba(212, 237, 218, 0.9);
    border-radius: 15px;
    color: #155724;
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-page header {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0.5rem;
    }

    #account-holder, .bank-info, #balance-info {
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .bank-info {
        flex-direction: column;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .bank-name {
        text-align: center;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .back-button {
        align-self: flex-start;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 1.5rem;
    }

    button {
        padding: 1rem;
    }
}

/* Animation for page transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.5s ease-out;
}