:root {
  --bg: #f4f7f6;
  --primary: #4a90e2;
  --primary-hover: #357abd;
  --text: #1a252f; /* Darkened for clean visibility */
  --text-muted: #4f5d6a; /* High-contrast label color */
  --card-bg: rgba(255, 255, 255, 0.75);
  --ai-bg: rgba(240, 244, 255, 0.9);
  --border: rgba(255, 255, 255, 0.4);
}

body {
  background-image: url("https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?q=80&w=1600");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

h1 {
  text-align: center;
  color: #2c3e50;
}

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

.card {
  background-color: rgba(255, 255, 255, 0.3);
  /* Frosted glass effect: Blurs the peaceful background image *behind* the card */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  /* A very soft, wide, warm glow using a larger blur radius (30px) */
  box-shadow:
    0 10px 30px rgba(255, 255, 255, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.05);
  /* Smooth, thin borders so the glass edges catch the light beautifully */
  border: 1px solid rgba(255, 255, 255, 0.4);
  /* Keep your existing spacing layout intact */
  padding: 20px;
  border-radius: 8px;
}

input,
select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #000000;
  font-size: 0.95rem;
}

.btn {
  background-color: var(--primary);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}
.btn:hover {
  background-color: var(--primary-hover);
}

.ai-section {
  margin-bottom: 30px;
  text-align: center;
}
.ai-btn {
  background-color: #6200ea;
  font-size: 1.1rem;
}
.ai-btn:hover {
  background-color: #4a00b0;
}

.recommendation-box {
  background: var(--ai-bg);
  border-left: 5px solid #6200ea;
  padding: 15px;
  margin-top: 15px;
  border-radius: 4px;
  text-align: left;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background-color: #0e334b;
}

.delete-link {
  color: #d32f2f;
  text-decoration: none;
  font-weight: bold;
}
.delete-link:hover {
  text-decoration: underline;
}
.flash {
  background: #ffebee;
  color: #c62828;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}
.clear-btn {
  display: inline-block;
  margin-top: 8px;
  color: #777;
  text-decoration: none;
}
