/* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { background-color: #f0f2f5; display: flex; justify-content: center; align-items: center; min-height: 100vh; } .container { max-width: 800px; width: 100%; padding: 40px; background-color: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } /* Auth Styles */ .auth-container { display: flex; flex-direction: column; align-items: center; } .auth-container h2 { margin-bottom: 20px; } .auth-container input { width: 100%; padding: 12px; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 4px; } .auth-container button { width: 100%; padding: 12px 20px; background-color: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; } .auth-container button:hover { background-color: #0056b3; } /* Dashboard Styles */ .dashboard { display: none; } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .dashboard-header button { padding: 8px 16px; background-color: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; } .dashboard-header button:hover { background-color: #0056b3; } .summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .card { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .card h3 { margin-bottom: 10px; } .card h2 { font-size: 24px; } .transactions { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .transactions h3 { margin-bottom: 10px; } .transactions-form { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; } .transactions-form input, .transactions-form select { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 4px; } .transactions-form button { padding: 12px 20px; background-color: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; } .transactions-form button:hover { background-color: #0056b3; } .transactions-table { width: 100%; border-collapse: collapse; } .transactions-table th, .transactions-table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; } .expense { color: #dc3545; } .income { color: #28a745; } /* Loader and Error Styles */ .loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.9); display: flex; justify-content: center; align-items: center; z-index: 1000; } .loading-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #3498db; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .error-message { color: #dc3545; padding: 12px; background-color: #ffe6e6; border-radius: 4px; text-align: center; margin-bottom: 20px; display: none; } /* Media Queries */ @media (max-width: 600px) { .container { padding: 20px; } .summary-cards { grid-template-columns: 1fr; } .transactions-form { flex-direction: column; } .transactions-form input, .transactions-form select, .transactions-form button { width: 100%; } }