/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Section Styling */
section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
}

section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

/* Total Assets Section */
.total-assets-section {
    background: white;
    color: #2d3748;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.total-assets-section .assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.total-assets-card {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

.total-assets-card:hover {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    box-shadow: none !important;
}

.income-card {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

.income-card:hover {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    box-shadow: none !important;
}

.expense-card {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

.expense-card:hover {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    box-shadow: none !important;
}

.balance-card {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

.balance-card:hover {
    background: #f5f5f5 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transform: none !important;
    box-shadow: none !important;
}

.reset-btn {
    background: #f7fafc;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.reset-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.asset-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.init-btn {
    background: #667eea;
    color: white;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.init-btn:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-2px);
}


.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Allowance Modal Styles */
.allowance-info {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .label {
    font-weight: 600;
    color: #4a5568;
}

.info-item .amount {
    font-weight: bold;
    color: #2d3748;
    font-size: 1.1rem;
}

.allowance-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

/* Assets Section */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.asset-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.asset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.asset-card:hover::before {
    left: 100%;
}

.asset-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.asset-card:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.asset-card:nth-child(3) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.asset-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.asset-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.asset-amount {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.asset-info small {
    opacity: 0.8;
    font-size: 0.9rem;
}

.total-assets {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.total-assets h3 {
    font-size: 1.5rem;
    border: none;
    padding: 0;
}

/* Transaction Form */
.transaction-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-self: start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Today's Summary */
.today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.today-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.today-card.income {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.today-card.expense {
    background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
}

.today-card.net {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.today-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.today-card .amount {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Charts Section */
.charts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.time-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.time-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.time-btn.active:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

.month-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.month-btn {
    padding: 6px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.month-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.month-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.month-btn.active:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

.payment-method-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.payment-method-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.payment-method-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.payment-method-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.payment-method-btn.active:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-selector label {
    font-weight: 600;
    color: #4a5568;
}

.month-selector select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.month-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.chart-date-info {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.chart-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.transaction-layout {
    width: 100%;
}

.date-selector-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.date-selector-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-selector-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

.date-selector-group input,
.date-selector-group select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    color: #4a5568;
    background: white;
    min-width: 150px;
}

.date-selector-group select {
    cursor: pointer;
}

.transaction-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transaction-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.section-header {
    padding: 15px 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
}

.date-selector input {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
}

.transaction-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    padding: 10px;
}

.transaction-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.transaction-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.transaction-info {
    flex: 1;
}

.transaction-category {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.transaction-details {
    font-size: 0.85rem;
    color: #718096;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.edit-btn {
    background: #4299e1;
    color: white;
}

.edit-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.delete-btn {
    background: #f56565;
    color: white;
}

.delete-btn:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

.no-transactions {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 20px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.page-info {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.chart-container {
    position: relative;
    height: 400px;
}

.expense-details {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

/* Transaction Tabs */
.transaction-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
    background: #f7fafc;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.details-header h3 {
    color: #2d3748;
    margin: 0;
    font-size: 1.3rem;
}

.back-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.details-content {
    max-height: 350px;
    overflow-y: auto;
}

.no-selection {
    text-align: center;
    color: #718096;
    font-style: italic;
    margin: 40px 0;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.expense-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expense-item-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.expense-item-details h4 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 1rem;
}

.expense-item-details p {
    margin: 0;
    color: #718096;
    font-size: 0.85rem;
}

.expense-item-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e53e3e;
}

.expense-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.edit-btn, .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.edit-btn:hover {
    background: #e2e8f0;
    opacity: 1;
    transform: scale(1.1);
}

.delete-btn:hover {
    background: #fed7d7;
    opacity: 1;
    transform: scale(1.1);
}

.category-summary {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.category-summary h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.category-summary .total-amount {
    font-size: 1.5rem;
    font-weight: bold;
}

.category-summary .transaction-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .chart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .transaction-sections {
        gap: 15px;
    }
    
    .transaction-list {
        max-height: 250px;
    }
    
    .date-selector-container {
        padding: 10px;
    }
    
    .date-selector-group {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Transactions List */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.transactions-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.transaction-item:hover {
    background-color: #f7fafc;
}

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

.transaction-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.transaction-details h4 {
    margin-bottom: 5px;
    color: #2d3748;
}

.transaction-details p {
    color: #718096;
    font-size: 0.9rem;
}

.transaction-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.transaction-amount.income {
    color: #38a169;
}

.transaction-amount.expense {
    color: #e53e3e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.add-card-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
}

/* Quick Transaction Modal Styles */
.transaction-type-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.type-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.type-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.type-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.type-btn.active:hover {
    background: #5a67d8;
}

/* Reset Modal Styles */
.warning-text {
    color: #e53e3e;
    font-weight: 600;
    margin: 10px 0;
}

.reset-list {
    background: #fef5e7;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f6ad55;
    margin: 15px 0;
}

.reset-list li {
    margin: 5px 0;
    color: #744210;
}

.reset-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #cbd5e0;
}

.confirm-reset-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirm-reset-btn:hover {
    background: #c53030;
    transform: translateY(-1px);
}

.credit-card-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-card-info h4 {
    margin-bottom: 5px;
    color: #2d3748;
}

.credit-card-info p {
    color: #718096;
    font-size: 0.9rem;
}

.credit-card-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.edit-btn {
    background: #4299e1;
    color: white;
}

.delete-btn {
    background: #e53e3e;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .assets-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .today-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .transaction-amount {
        align-self: flex-end;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #4a5568;
}

.empty-state p {
    font-size: 0.9rem;
}

/* SEO Content Styles */
.intro-section {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #667eea;
}

.intro-section h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.intro-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Footer Styles */
footer {
    background: #2d3748;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    border-radius: 15px 15px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.footer-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #e2e8f0;
    font-size: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .intro-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
    
    footer {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .footer-content h3 {
        font-size: 1.3rem;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
}
