* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #0050b2 100%);
    min-height: 100vh;
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.login-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.login-header p {
    color: #666;
    font-size: 1.1em;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus select:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #0050b2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
}

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

/* Registration Page Styles */
.register-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.register-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.register-form input:focus {
    outline: none;
    border-color: #667eea;
}

.register-links {
    text-align: center;
    margin-top: 20px;
}

.register-links a {
    color: #667eea;
    text-decoration: none;
}

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

/* Dashboard Styles */
#dashboard-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: #333;
    font-size: 1.8em;
}

.dashboard-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-welcome {
    color: #666;
    font-weight: 500;
}

.dashboard-nav {
    background: white;
    border-bottom: 1px solid #e1e5e9;
}

.dashboard-nav ul {
    list-style: none;
    display: flex;
    padding: 0 30px;
}

.dashboard-nav li {
    margin-right: 30px;
}

.dashboard-nav a {
    display: block;
    padding: 20px 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.dashboard-nav i {
    margin-right: 8px;
}

.dashboard-main {
    padding: 30px;
}

.dashboard-section {
    display: none;
}

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

.dashboard-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Account Cards */
.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.account-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
}

.account-card.checking {
    border-left-color: #28a745;
}

.account-card.savings {
    border-left-color: #17a2b8;
}

.account-card.credit {
    border-left-color: #dc3545;
}

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

.card-header h3 {
    color: #333;
    font-size: 1.2em;
}

.card-header i {
    font-size: 1.5em;
    color: #667eea;
}

.card-balance {
    text-align: center;
}

.balance-amount {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.account-number {
    color: #666;
    font-size: 0.9em;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.quick-actions h3 {
    color: #333;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn i {
    margin-right: 8px;
}

/* Recent Transactions */
.recent-transactions {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recent-transactions h3 {
    color: #333;
    margin-bottom: 20px;
}

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

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

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

.transaction-info {
    flex: 1;
}

.transaction-description {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.transaction-date {
    color: #666;
    font-size: 0.9em;
}

.transaction-amount {
    font-weight: bold;
    font-size: 1.1em;
}

.transaction-amount.positive {
    color: #28a745;
}

.transaction-amount.negative {
    color: #dc3545;
}

/* Accounts Detail */
.accounts-detailed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-detail {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.account-info p {
    color: #666;
    margin-bottom: 5px;
}

.account-balance span {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

/* Transfer Form */
.transfer-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.transfer-form .form-group {
    margin-bottom: 20px;
}

.transfer-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.transfer-form input,
.transfer-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.transfer-form input:focus,
.transfer-form select:focus {
    outline: none;
    border-color: #667eea;
}

/* Bills Section */
.bills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.payees-section,
.payment-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payees-section h3,
.payment-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.payees-list {
    margin-bottom: 20px;
}

.payee-item {
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payee-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.payee-info p {
    color: #666;
    font-size: 0.9em;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.payment-form input,
.payment-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.payment-form input:focus,
.payment-form select:focus {
    outline: none;
    border-color: #667eea;
}

/* Transaction Filters */
.transactions-filters {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
}

/* Settings */
.settings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.settings-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.settings-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.settings-form input:focus {
    outline: none;
    border-color: #667eea;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    color: #333;
    margin: 0;
}

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

.close:hover {
    color: #333;
}

.modal-form {
    padding: 25px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.not-activated-body {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cancel-not-activated{
    width: 40px;
    height: 40px;
    position: relative;
    left: 90%;
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3em;
    margin-bottom: 20px;
}

.loading-spinner p {
    font-size: 1.2em;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    .dashboard-nav li {
        margin: 0;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .dashboard-nav a {
        padding: 15px 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .dashboard-nav a:hover,
    .dashboard-nav a.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .account-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .bills-container,
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .transactions-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .account-detail {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 15px;
    }
    
    .login-container,
    .register-container {
        margin: 20px;
        padding: 20px;
    }
    
    .dashboard-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}