/* --- GLOBAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- LOGIN PAGE SPECIFIC --- */
body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.ibb.co/qY1fbv7z/IMG-3782.jpg') no-repeat center center/cover;
    z-index: -1;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.logo-container {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.app-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    background: transparent;
    border-radius: 0;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -15px;
    font-size: 13px;
    color: #005eb8;
}

.show-password {
    position: absolute;
    right: 0;
    top: 10px;
    color: #005eb8;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.options-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #005eb8;
}

.checkbox-container label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.sign-in-btn {
    width: 100%;
    padding: 12px;
    background-color: #005eb8;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.links a {
    text-decoration: none;
    color: #005eb8;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Footer Login */
.footer {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    border-top: 1px solid #ddd;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons i {
    font-size: 20px;
    color: #555;
    margin: 0 12px;
    cursor: pointer;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright p {
    font-size: 11px;
    color: #777;
    margin-top: 10px;
}

/* --- DASHBOARD PAGE SPECIFIC --- */
body.dashboard-page {
    background-color: #f4f5f8;
    color: #333;
    padding-bottom: 80px; /* Space for nav */
}

.app-header {
    background-color: #005eb8;
    color: white;
    padding: 1rem;
}

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

.header-icons i {
    margin-left: 1rem;
    cursor: pointer;
}

.header-greeting {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.header-greeting h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.header-greeting span {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.quick-actions::-webkit-scrollbar { display: none; }

.quick-actions button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.dashboard-content { padding: 1rem; }

.card {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.snapshot-card {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.snapshot-icon {
    font-size: 1.5rem;
    color: #005eb8;
    margin-right: 1rem;
}

.snapshot-details { flex-grow: 1; }
.snapshot-details h3 { font-size: 1rem; font-weight: 600; }
.read-time {
    background-color: #eee;
    color: #555;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.accounts-header h2 { font-size: 1.2rem; font-weight: 500; }

.account-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.account-card-header {
    background-color: #004494;
    color: white;
    padding: 0.75rem 1rem;
}
.account-card-header h3 { font-size: 0.95rem; font-weight: 600; }

.account-card-body { padding: 1rem; }

.account-name {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.account-name i { margin-left: 0.5rem; }

.account-balance {
    font-size: 2rem;
    font-weight: 400;
    color: #111;
}

.balance-type {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
}

.open-account-btn {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 2px dashed #005eb8;
    color: #005eb8;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.services-list {
    list-style: none;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.services-list li {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.services-list li:last-child { border-bottom: none; }

.service-icon {
    font-size: 1.2rem;
    color: #444;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.service-details h3 { font-size: 0.95rem; font-weight: 600; color: #222; }
.service-details p { font-size: 0.8rem; color: #666; }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    width: 25%;
    cursor: pointer;
}
.nav-item i { font-size: 20px; margin-bottom: 4px; }
.nav-item.active { color: #005eb8; }

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.transactions-list {
    list-style: none;
    margin-top: 20px;
}

.transactions-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}
.trans-date { font-size: 0.8rem; color: #666; display: block; }
.trans-desc { font-weight: 600; display: block; }
.trans-amount { color: #000; font-weight: bold; }
