* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.mobile-card {
    background: #2d2d3f;
    border-radius: 40px;
    padding: 30px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    min-height: 600px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.greeting h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.balance-card-modern {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.balance-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.balance-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-item .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.balance-item .amount {
    font-size: 1.3rem;
    font-weight: 600;
}

.balance-item .expense {
    color: #fbbf24;
}

.balance-item .income {
    color: #34d399;
}

.transaction-section {
    margin-top: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.see-all {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.see-all:hover {
    background: rgba(255, 255, 255, 0.2);
}

.transaction-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.transaction-list-modern::-webkit-scrollbar {
    width: 6px;
}

.transaction-list-modern::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.transaction-list-modern::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.transaction-item-modern {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.transaction-item-modern:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.transaction-icon.expense {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.transaction-icon.income {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
    color: white;
}

.transaction-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.transaction-amount-container {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.transaction-amount-modern {
    font-size: 1.1rem;
    font-weight: 600;
}

.transaction-amount-modern.expense {
    color: #fbbf24;
}

.transaction-amount-modern.income {
    color: #34d399;
}

.btn-delete-modern {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-delete-modern:hover {
    background: rgba(239, 68, 68, 0.3);
}

.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.form-modal.active {
    display: flex;
}

.form-content {
    background: #2d2d3f;
    border-radius: 25px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: white;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.charts-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}

.chart-card {
    background: #2d2d3f;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chart-card h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stats-section {
    background: #2d2d3f;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.stats-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    padding: 20px;
    border-radius: 18px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.btn-back {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .mobile-card {
        border-radius: 30px;
        padding: 20px;
    }
    
    .balance-amount {
        font-size: 2.5rem;
    }
    
    .greeting h1 {
        font-size: 1.5rem;
    }
}
