* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.hidden {
    display: none !important;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.input-group input:focus {
    border-color: #d32f2f;
}

.error-msg {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    background-color: #fcfcfc;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

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

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-btn:hover {
    background-color: #f0f0f0;
}

.user-info h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.user-info p {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.brand-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px 10px 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.secure-badge {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.secure-badge .dot {
    width: 8px;
    height: 8px;
    background-color: #2e7d32;
    border-radius: 50%;
}

.app-nav {
    display: flex;
    gap: 30px;
    padding: 0 40px;
    border-bottom: 1px solid #eee;
    margin-top: 15px;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    padding-bottom: 12px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.nav-item.active {
    color: #d32f2f;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d32f2f;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.balance-card {
    background-color: #1a237e;
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.15);
    margin-bottom: 30px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #c5cae9;
}

.balance-amount {
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0 30px 0;
    letter-spacing: 0.5px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.label {
    color: #9fa8da;
    margin-bottom: 6px;
}

.value {
    font-weight: 600;
    font-size: 15px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 600px;
}

.btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: none;
}

.btn-disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.btn-red {
    background-color: #d32f2f;
    color: #ffffff;
}

.btn-red:active {
    background-color: #b71c1c;
}

.transactions-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

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

.section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.section-header a {
    font-size: 15px;
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.t-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.t-icon.in {
    background-color: #e8f5e9;
}

.t-icon.out {
    background-color: #ffebee;
}

.t-icon.pending {
    background-color: #fff8e1;
}

.t-details {
    display: flex;
    flex-direction: column;
}

.t-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.t-date {
    font-size: 14px;
    color: #888;
}

.t-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.t-amount {
    font-size: 17px;
    font-weight: 700;
}

.t-amount.positive {
    color: #2e7d32;
}

.t-amount.negative {
    color: #c62828;
}

.t-amount.pending {
    color: #f57f17;
}

.t-type {
    font-size: 14px;
    color: #888;
    margin-top: 6px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    color: #333;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 18px;
    color: #111;
    font-weight: 700;
}

.modal-body {
    padding: 25px;
}

.menu-link {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.menu-link:last-child {
    border-bottom: none;
}

.menu-link#logout-btn {
    color: #d32f2f;
}

@media (max-width: 768px) {
    .app-header, .brand-section, .app-nav, .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .balance-amount {
        font-size: 32px;
    }

    .action-buttons {
        flex-direction: column;
        max-width: 100%;
    }

    .transactions-section {
        padding: 20px;
    }

    .t-icon {
        width: 40px;
        height: 40px;
    }

    .t-title {
        font-size: 15px;
    }

    .t-amount {
        font-size: 15px;
    }

    .login-box {
        padding: 30px 20px;
        box-shadow: none;
        border-radius: 0;
    }
}