* {
  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;
  padding: 20px;
}
/* Login Styles */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-logo {
  font-size: 4em;
  margin-bottom: 20px;
}

.login-h1 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.dark .login-h1 {
  color: white;
}

.login-input-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.login-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  background: white;
}

.login-btn {
  width: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.credentials {
  margin-top: 20px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  font-size: 14px;
}

.error-msg {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #ef4444;
  display: none;
}

/* Main App Styles */
.header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  padding-top: 80px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.amount {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.balance {
  color: #10b981;
}
.income {
  color: #059669;
}
.expense {
  color: #ef4444;
}

.dark .card {
  background: rgba(30, 30, 50, 0.95);
  color: white;
}

.input-section,
.category-breakdown,
.transactions {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.input-group input,
.input-group select {
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
}

.add-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  grid-column: span 2;
}

.category-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border-left: 5px solid #f87171;
}

.category-item.transport {
  border-left-color: #60a5fa;
}
.category-item.travel {
  border-left-color: #f59e0b;
}
.category-item.shopping {
  border-left-color: #fbbf24;
}
.category-item.entertainment {
  border-left-color: #a78bfa;
}
.category-item.salary {
  border-left-color: #10b981;
}
.category-item.other {
  border-left-color: #6b7280;
}

.dark .category-item {
  background: rgba(75, 75, 100, 0.3);
}

.category-amount {
  font-weight: bold;
  font-size: 18px;
  color: #ef4444;
}

.no-data {
  text-align: center;
  color: #666;
  font-style: italic;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

.delete-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 768px) {
  .input-group {
    grid-template-columns: 1fr;
  }
}
