*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

.header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e3e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dropdown {
    position: relative;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.date-picker {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn {
    background: #ea580c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.card-menu {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.change {
    font-size: 0.875rem;
    color: rgb(89, 196, 89);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.my-card {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.card-chip {
    width: 32px;
    height: 24px;
    background: #fbbf24;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: #92400e;
    border-radius: 2px;
}

.card-number {
    font-size: 1.25rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
    font-family: "Courier New", monospace;
}

.card-logo {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: -8px;
}

.card-logo-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.logo-red {
    background: #ef4444;
}

.logo-orange {
    background: #f59e0b;
    margin-left: -8px;
}

.spending-section {
    margin-top: 2rem;
}

.spending-limit {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.spending-used {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ea580c;
    width: 37%;
    border-radius: 3px;
}

.chart-section {
    grid-column: 1/ -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chart-container {
    height: 300px;
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 1rem;
}

.chart-bar {
    width: 40px;
    background: #e5e7eb;
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
}

.chart-bar.active {
    background: linear-gradient(to top, #ea580c,#fb923c);
}

.chart-bar-income {
    background: #10b981;
    margin-bottom: 4px;
    border-radius: 4px;
}

.chart-bar-expense {
    background: #ea580c;
    border-radius: 4px;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.expense-breakdown {
    margin-top: 1rem;
}

.total-expenses {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.period-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.period-tab {
    color: #6b7280;
    cursor: pointer;
}

.period-tab.active {
    color: #1e293b;
    font-weight: 600;
}

.period-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.period-values {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.color-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #ea580c, #f59e0b, #eab308, #10b981);
    margin-bottom: 1rem;
}

.expense-categories {
    list-style: none;
}

.expense-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-food {
    background: #ea580c;
}

.dot-entertainment {
    background: #f59e0b;
}

.dot-shopping {
    background: #10b981;
}

.dot-investment {
    background: #eab308;
}

.transaction-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.transaction-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.transaction-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.status-success {
    background: #dcfce7;
    color: #16a34a;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.action-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.delete-btn {
    color: #d1d5db;
    transition: color 0.2s ease, transform 0.2s ease;
}

.delete-btn:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.add-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fab-income{
    background: #10b981;
}

.fab-expense {
    background: #ef4444;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIN 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 500px;
    max-width: 90vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideIN 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: end;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-secondary {
    background: #374151;
    color: white;
}



@keyframes fadeIN {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}





@keyframes slideIN {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-content {
        padding: 1rem;
    }
}