/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a1a3a; /* Biru tua */
    color: #fff;
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0a1a3a 0%, #1a3a5f 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #4dabf7;
    text-shadow: 0 2px 10px rgba(77, 171, 247, 0.3);
}

.login-header p {
    font-size: 1.1rem;
    color: #a5d8ff;
    max-width: 500px;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 3rem;
    color: #4dabf7;
    margin-bottom: 15px;
}

.login-logo h2 {
    font-size: 1.8rem;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #a5d8ff;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-login, .btn-register, .btn-primary, .btn-secondary, .btn-danger, .btn-logout {
    padding: 15px 25px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login, .btn-primary {
    background: linear-gradient(135deg, #4dabf7 0%, #1971c2 100%);
    color: white;
    width: 100%;
}

.btn-login:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #1971c2 0%, #0c5ba0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 113, 194, 0.4);
}

.btn-register {
    background: linear-gradient(135deg, #20c997 0%, #099268 100%);
    color: white;
    width: 100%;
}

.btn-register:hover {
    background: linear-gradient(135deg, #099268 0%, #087f5b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 146, 104, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #fa5252 0%, #e03131 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e03131 0%, #c92a2a 100%);
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-actions {
    margin-top: 30px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-links a {
    color: #a5d8ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #4dabf7;
    text-decoration: underline;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1a3a 0%, #1a3a5f 100%);
}

.sidebar {
    width: 280px;
    background: rgba(10, 26, 58, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-header h1 {
    font-size: 1.8rem;
    color: #4dabf7;
    margin-bottom: 30px;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.user-info i {
    font-size: 2.5rem;
    color: #4dabf7;
}

.user-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a:hover, .sidebar-nav li.active a {
    background: rgba(77, 171, 247, 0.2);
    color: #fff;
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.header-title p {
    color: #a5d8ff;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Saldo Summary Styles */
.saldo-summary {
    margin-bottom: 40px;
}

.saldo-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.saldo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.saldo-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.saldo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.saldo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #a5d8ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.saldo-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.saldo-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.saldo-input input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-small {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: rgba(77, 171, 247, 0.2);
    color: #4dabf7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    background: rgba(77, 171, 247, 0.3);
}

.transfer-option {
    margin-top: 15px;
}

.transfer-option label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.transfer-option select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Transaction Section Styles */
.transaction-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Transaction List Styles */
.transaction-list h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #a5d8ff;
    font-weight: 600;
}

.filter-group select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    min-width: 150px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-table th {
    background: rgba(77, 171, 247, 0.2);
    padding: 18px 15px;
    text-align: left;
    color: #a5d8ff;
    font-weight: 600;
}

.transaction-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-table tr:last-child td {
    border-bottom: none;
}

.transaction-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Badge Styles */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pemasukan {
    background: rgba(32, 201, 151, 0.2);
    color: #20c997;
}

.badge-pengeluaran {
    background: rgba(250, 82, 82, 0.2);
    color: #fa5252;
}

.badge-tabungan {
    background: rgba(134, 142, 250, 0.2);
    color: #868efa;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0a1a3a;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(77, 171, 247, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Page Styles */
.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1a3a 0%, #1a3a5f 100%);
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo h1 {
    font-size: 2.2rem;
    color: #4dabf7;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-badge {
    background: #fa5252;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.admin-logo p {
    color: #a5d8ff;
}

.admin-nav {
    display: flex;
    gap: 15px;
}

.admin-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.admin-section h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section p {
    color: #a5d8ff;
    margin-bottom: 25px;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(77, 171, 247, 0.2);
    padding: 18px 15px;
    text-align: left;
    color: #a5d8ff;
    font-weight: 600;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.admin-form-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .saldo-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .saldo-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .transaction-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .admin-nav {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px;
    }
    
    .login-header h1 {
        font-size: 2.2rem;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}