* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000000;
}

.nav-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background: linear-gradient(135deg, #222, #222);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover:not(.active) {
    background: #333;
}

/* Month Selector - Dropdown Style */
.month-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #111;
    border-radius: 12px;
    border: 1px solid #333;
}

.month-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.month-dropdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.month-dropdown {
    background: #222;
    color: white;
    border: 1px solid #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.month-dropdown option {
    background: #111;
    color: white;
    padding: 10px;
}

.new-month-btn {
    background: linear-gradient(135deg, #00AA00, #006600);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.new-month-btn:hover {
    background: linear-gradient(135deg, #00CC00, #008800);
    transform: translateY(-2px);
}

/* Transaction Page */
.transaction-page {
    display: none;
}

.page-title {
    color: #ffffff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Transaction Form */
.transaction-form {
    background: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: end;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: #CCCCCC;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.add-btn {
    background: linear-gradient(135deg, #222, #222);
    color: white;
    border: none;
    padding: 12px 25px;
    border-color: #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
}

.add-btn:hover {
    background: linear-gradient(135deg, #000, #000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Transaction List */
.transaction-list {
    background: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.list-header {
    display: grid;
    grid-template-columns: 4.5fr 2.7fr 1.8fr 0.5fr;
    padding: 15px;
    background: #222;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.transaction-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #333;
    align-items: center;
}

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

.transaction-item:hover {
    background: rgba(255, 0, 0, 0.05);
}

.transaction-description {
    color: #FFFFFF;
}

.transaction-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}


.transaction-amount {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.delete-btn {
    background: #333;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    justify-self: end;
}

.delete-btn:hover {
    background: #ffffff;
    color: #000;
}

.total-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px;
    background: #222;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    color: #ffffff;
}

/* Dashboard Styles */
.dashboard-page {
    display: none;
}

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

.header h1 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title span {
    font-size: 1rem;
    color: #ffffff;
}

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

.input-group label {
    display: block;
    color: #CCCCCC;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.btn {
    background: linear-gradient(135deg, #333, #333);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(135deg, #000000, #000000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-reset {
    background: #333;
}

.btn-reset:hover {
    background: #444;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-good {
    background: rgba(0, 255, 0, 0.1);
    color: #00FF00;
    border: 1px solid #00FF00;
}

.status-warning {
    background: rgba(255, 255, 0, 0.1);
    color: #FFFF00;
    border: 1px solid #FFFF00;
}

.status-bad {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
    border: 1px solid #FF0000;
}

.progress-container {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #CCCCCC;
}

.progress-bar {
    height: 12px;
    background: #333;
    color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.chart-container {
    height: 250px;
    margin-top: 20px;
}

.summary-box {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #222;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

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

.summary-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
}

.bill-reminder {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.countdown {
    font-size: 2rem;
    text-align: center;
    color: #ffffff;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
}

/* Month Summary Card */
.month-summary-card {
    background: linear-gradient(135deg, #111, #222);
    border: 2px solid #222;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.month-summary-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.stat-label {
    color: #CCCCCC;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Quick Month Info */
.month-info {
    color: #CCCCCC;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}
