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

body {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    background: #181a20;
    min-height: 100vh;
    color: #f5f6fa;
}

.expense-tracker {
    min-height: 100vh;
    padding: 40px 8%;
    background: #181a20;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    color: #f5f6fa;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.header h1 span {
    color: #ffb347;
}

.header p {
    font-size: 1.3rem;
    color: #b2becd;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-section {
    background: #23263a;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    height: fit-content;
    border: 1px solid #353866;
}

.form-section h2 {
    margin-bottom: 25px;
    color: #ffb347;
    font-weight: 600;
}

.expense-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.filter-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #353866;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #181a20;
    color: #f5f6fa;
}

.form-group input:focus,
.form-group select:focus,
.filter-select:focus {
    outline: none;
    border-color: #ffb347;
    background: #181a20;
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.2);
}

.btn-primary {
    background: #ffb347;
    color: #23263a;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #fff;
    color: #23263a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.4);
}

.summary-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary {
    background: #23263a;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    text-align: center;
    border: 1px solid #353866;
}

.summary h3 {
    margin-bottom: 20px;
    color: #ffb347;
    font-weight: 600;
}

.total {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #f5f6fa;
}

.total .amount {
    color: #ffb347;
    display: block;
    margin-top: 5px;
}

.expense-count {
    color: #b2becd;
    font-size: 0.9rem;
}

.filters {
    background: #23263a;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 1px solid #353866;
}

.filters h3 {
    margin-bottom: 15px;
    color: #ffb347;
    font-weight: 600;
}

.expenses-section {
    grid-column: 1 / -1;
    background: #23263a;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 1px solid #353866;
}

.expenses-section h2 {
    margin-bottom: 25px;
    color: #ffb347;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b2becd;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f5f6fa;
}

.empty-state small {
    opacity: 0.7;
}

.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expense-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #181a20;
    border-radius: 15px;
    border-left: 5px solid #ffb347;
    transition: all 0.3s ease;
    border: 1px solid #353866;
}

.expense-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.2);
    background: #353866;
}

.expense-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.expense-category {
    font-size: 0.9rem;
    color: #ffb347;
    font-weight: 600;
}

.expense-description {
    font-weight: 500;
    color: #f5f6fa;
}

.expense-date {
    font-size: 0.85rem;
    color: #b2becd;
}

.expense-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffb347;
    margin-right: 15px;
}

.btn-remove {
    background: #ff6b6b;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #ff5252;
    transform: scale(1.1);
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .expense-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .expense-amount {
        margin-right: 0;
        align-self: flex-end;
    }
    
    .return-section {
        margin-top: 30px;
    }
    
    .return-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expense-item {
    animation: fadeIn 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #23263a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ffb347;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Return button section */
.return-section {
    margin-top: 40px;
    text-align: center;
}

.return-btn {
    background: transparent;
    color: #b2becd;
    border: 2px solid #353866;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.return-btn:hover {
    background: #353866;
    color: #ffb347;
    border-color: #ffb347;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 56, 102, 0.4);
}