:root {
    --primary-color: #f0f4f8;
    --accent-color: #4a90e2;
    --text-color: #2d3748;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --income-color: #4CAF50;
    --expense-color: #f44336;
    --card-bg: rgba(255, 255, 255, 0.15);
    --text-primary: #4a4a4a;
    --text-secondary: #666666;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --bg-gradient-start: #ffe4b5;
    --bg-gradient-end: #ffdab9;
    --card-bg: rgba(255, 255, 255, 0.15);
    --text-primary: #4a4a4a;
    --text-secondary: #666666;
    --accent-color: #ff9966;
    --income-color: #66bb6a;
    --expense-color: #ff7043;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
}

/* Aplikasikan font untuk heading */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Aplikasikan font untuk jumlah uang */
.amount, 
[class*="Rp"], 
.balance-amount, 
.transaction-amount {
    font-family: var(--font-heading);
    font-weight: 500;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding: var(--safe-area-inset-top) 0 var(--safe-area-inset-bottom) 0;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.page {
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hidden {
    display: none !important;
}

/* Login styles */
.login-container {
    margin: auto;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
}

.login-container input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
}

.login-container button {
    width: 100%;
    padding: 1rem;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
}

.pin-display {
    font-size: 2rem;
    margin: 1.5rem 0;
    letter-spacing: 0.5rem;
    color: #333;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.numpad button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem;
    font-size: 1.5rem;
    border-radius: 50%;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.numpad button:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

/* Settings button styles */
.settings-btn {
    position: fixed;
    bottom: max(1rem, var(--safe-area-inset-bottom));
    left: 1rem;
    width: clamp(48px, 12vw, 56px);
    height: clamp(48px, 12vw, 56px);
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
}

.settings-btn:hover {
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Settings modal styles */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.settings-options button {
    padding: 1rem;
    background: var(--card-bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-options button i {
    font-size: 1.2rem;
}

.close-btn {
    width: 100%;
    padding: 1rem;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Transaction form styles */
.transaction-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1.2rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.2rem;
}

/* Type Selector */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0.5rem 0;
}

.type-btn {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn.active[data-type="income"] {
    background: var(--income-color);
    color: white;
}

.type-btn.active[data-type="expense"] {
    background: var(--expense-color);
    color: white;
}

/* Amount Input */
.amount-input {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.currency-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
}

#amount {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: right;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Form Actions */
.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.btn {
    padding: 0.8rem;
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Transaction list styles */
.transactions-list {
    margin: 0.8rem 0;
    padding: 0;
    max-height: calc(100vh - 450px);
    min-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.transaction-item {
    background: var(--glass-bg);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid transparent;
    position: relative;
}

.transaction-item.income {
    border-left-color: var(--income-color);
}

.transaction-item.expense {
    border-left-color: var(--expense-color);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-amount {
    font-size: 1.1rem;
    font-weight: bold;
}

.transaction-item.income .transaction-amount {
    color: var(--income-color);
}

.transaction-item.expense .transaction-amount {
    color: var(--expense-color);
}

.category {
    font-weight: 600;
    color: var(--text-primary);
}

.date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Scrollbar styling */
.transactions-list::-webkit-scrollbar {
    width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Empty state */
.no-transactions {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Media queries for different screen sizes */
@media screen and (max-height: 700px) {
    .transactions-list {
        max-height: calc(100vh - 380px);
        min-height: 150px;
    }
}

@media screen and (min-height: 800px) {
    .transactions-list {
        max-height: calc(100vh - 500px);
        min-height: 300px;
    }
}

/* Landscape mode */
@media screen and (orientation: landscape) {
    .transactions-list {
        max-height: calc(100vh - 250px);
    }
}

footer {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0;
    height: auto;
    min-height: auto;
}

.dashboard-card {
    padding: clamp(0.8rem, 3vw, 1.2rem);
    text-align: center;
    border-radius: 15px;
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: clamp(80px, 20vh, 120px);
}

.dashboard-card h3 {
    font-size: clamp(0.8rem, 3vw, 1rem);
    margin: 0.3rem 0;
    color: var(--text-primary);
}

.dashboard-card i {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.income-icon { color: #4CAF50; }
.expense-icon { color: #f44336; }

.top-expenses {
    margin: 0;
    padding: clamp(0.8rem, 3vw, 1.2rem);
    max-height: 30vh;
}

.top-expenses h3 {
    font-size: 0.9rem;
    margin: 0 0 0.8rem 0;
    color: var(--text-primary);
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.expense-item:last-child {
    border-bottom: none;
}

.chart-container {
    margin: 0;
    padding: clamp(0.8rem, 3vw, 1.2rem);
    height: clamp(150px, 25vh, 250px);
}

.fab {
    position: fixed;
    bottom: max(1rem, var(--safe-area-inset-bottom));
    right: 1rem;
    width: clamp(48px, 12vw, 56px);
    height: clamp(48px, 12vw, 56px);
    border-radius: 50%;
    background: #2196F3;
    color: white;
    border: none;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.fab:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 420px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header i {
    color: var(--accent-color);
}

.transaction-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-control {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    width: 100%;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e5e5e5;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 1.2rem;
    }
    
    .settings-section {
        padding: 0.8rem;
    }
}

header {
    padding: 0.8rem;
    margin: -1rem -1rem 0;
    text-align: center;
}

header h1 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.header-icon {
    font-size: 1.2rem;
    color: #4a90e2;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover .dashboard-card {
    transform: scale(1.02);
    transition: transform 0.2s;
}

.dashboard-card small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Add styles for transaction history page */
.transaction-history {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    padding: 1rem;
}

.transaction-history header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.back-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Card specific styles */
.dashboard-card.saldo i {
    color: #4a90e2;
}

.dashboard-card.income {
    color: var(--income-color);
}

.dashboard-card.income i {
    color: var(--income-color);
}

.dashboard-card.expense {
    color: var(--expense-color);
}

.dashboard-card.expense i {
    color: var(--expense-color);
}

.dashboard-card.last-transaction {
    color: var(--text-primary);
}

.dashboard-card p {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    font-weight: bold;
    margin: 0.2rem 0;
}

/* Media queries for different device sizes */
@media screen and (max-height: 667px) {
    /* iPhone SE and similar */
    .dashboard-grid {
        gap: 0.5rem;
    }
    
    .dashboard-card {
        min-height: 70px;
    }
    
    .top-expenses {
        max-height: 25vh;
    }
    
    .chart-container {
        height: 130px;
    }
}

@media screen and (min-height: 800px) {
    /* Larger phones */
    .dashboard-card {
        min-height: 100px;
    }
    
    .top-expenses {
        max-height: 35vh;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* iPhone X and newer notch/dynamic island support */
@supports (padding: max(0px)) {
    .page {
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .fab {
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .settings-btn {
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Landscape mode adjustments */
@media screen and (orientation: landscape) and (max-height: 450px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .top-expenses {
        max-height: 40vh;
    }
    
    .chart-container {
        height: 100px;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

.no-transactions {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
}

/* History section styles */
.history-section {
    margin: 0.8rem 0;
    padding: 1rem;
    border-radius: 15px;
    background: var(--glass-bg);
}

.history-header {
    margin-bottom: 1rem;
}

.history-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.date-input {
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.type-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
}

.history-list {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .date-filter {
        font-size: 0.9rem;
    }
    
    .date-input {
        flex: 1;
        min-width: 120px;
    }
}

@media screen and (min-width: 768px) {
    .filter-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* PIN Page styles */
.pin-container {
    background: linear-gradient(135deg, rgba(255, 228, 181, 0.7), rgba(255, 218, 185, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 32px rgba(255, 255, 255, 0.2);
    width: 85%;
    max-width: 360px;
    margin: 2rem auto;
}

.pin-display {
    text-align: center;
    margin-bottom: 2rem;
}

.pin-display h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.pin-dot.filled {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(255, 153, 102, 0.5);
    transform: scale(1.1);
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.numpad button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    height: clamp(50px, 12vw, 65px);
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpad button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.numpad button:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Special buttons */
.numpad button.clear {
    font-size: 1.2rem;
    color: var(--expense-color);
}

.numpad button.delete {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Animation for PIN dots */
@keyframes dotPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pin-dot.filled {
    animation: dotPulse 0.3s ease;
}

/* Responsive adjustments */
@media screen and (min-height: 700px) {
    .pin-container {
        margin-top: 4rem;
    }
    
    .numpad {
        gap: 1.2rem;
    }
    
    .numpad button {
        height: clamp(60px, 14vw, 75px);
    }
}

/* Glass morphism enhancement */
.pin-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    pointer-events: none;
}

/* Settings Modal Styles */
.settings-section {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h3 i {
    color: var(--accent-color);
}

.setting-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.settings-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.last-backup {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Form controls in settings */
.settings-section .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    width: 100%;
}

/* Button styles */
.btn {
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn i {
    font-size: 1.1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Styling untuk input jumlah */
#amount {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: right;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

#amount::placeholder {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-secondary);
    text-align: left;
}

/* Form group styling */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
}

/* Transaction Item with Actions */
.transaction-item {
    position: relative;
}

.transaction-actions {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.transaction-item:hover .transaction-actions {
    opacity: 1;
}

.action-btn {
    padding: 0.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.action-btn.edit:hover {
    color: var(--accent-color);
}

.action-btn.delete:hover {
    color: var(--expense-color);
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .transaction-form {
        padding: 0 1rem;
    }
    
    .form-actions {
        padding: 0 0.3rem;
    }
}

/* Chart and Transaction List Layout */
.transactions-section {
    margin: 1rem 0;
    padding: 0 1rem;
}

.chart-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.chart-container canvas {
    width: 100% !important;
    height: 200px !important;
}

/* Existing transaction list styles */
.transactions-list {
    margin: 0.8rem 0;
    padding: 0;
    max-height: calc(100vh - 450px);
    min-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive adjustments */
@media screen and (max-height: 700px) {
    .chart-container canvas {
        max-height: 150px;
    }
    
    .transactions-list {
        max-height: calc(100vh - 380px);
    }
}

@media screen and (min-height: 800px) {
    .chart-container canvas {
        max-height: 250px;
    }
    
    .transactions-list {
        max-height: calc(100vh - 500px);
    }
}

/* Header styling */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.2rem;
    margin-bottom: 0.6rem;
}

.dashboard-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-header .app-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
}

/* Grid cards styling */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

.dashboard-card {
    padding: 1.2rem;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Specific card colors */
.balance-card {
    background: linear-gradient(135deg, rgba(64, 154, 247, 0.1), rgba(43, 170, 177, 0.1));
    border-color: rgba(64, 154, 247, 0.2);
}

.income-card {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), rgba(32, 167, 172, 0.1));
    border-color: rgba(46, 213, 115, 0.2);
}

.expense-card {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(241, 90, 34, 0.1));
    border-color: rgba(255, 71, 87, 0.2);
}

.latest-transaction {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.1), rgba(240, 147, 43, 0.1));
    border-color: rgba(255, 159, 67, 0.2);
}

/* Card icons */
.dashboard-card i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.balance-card i {
    color: #409AF7;
}

.income-card i {
    color: #2ED573;
}

.expense-card i {
    color: #FF4757;
}

.latest-transaction i {
    color: #FF9F43;
} 