* {
  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;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.section {
  background: #f8f9ff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4facfe;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.btn {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
}

.expense-item {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #4facfe;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expense-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.expense-details {
  flex: 1;
}

.expense-amount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.expense-description {
  color: #666;
  margin: 5px 0;
}

.expense-category {
  display: inline-block;
  background: #4facfe;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 10px;
}

.expense-date {
  color: #999;
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #4facfe;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

.category-breakdown {
  margin-top: 20px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.category-name {
  font-weight: 600;
  color: #333;
}

.category-amount {
  font-weight: bold;
  color: #4facfe;
}

.category-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}

.category-fill {
  height: 100%;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.budget-section {
  margin-top: 20px;
}

.budget-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.budget-status {
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

.budget-good {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.budget-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.budget-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.full-width {
  grid-column: 1 / -1;
}

.insights {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  margin-top: 20px;
}

.insight-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
}

.insight-title {
  font-weight: bold;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expense-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .budget-input {
    flex-direction: column;
  }
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-state img {
  width: 100px;
  opacity: 0.5;
  margin-bottom: 20px;
}
