/* ===============================
   GLOBAL FONT & RESET
================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f0f2f5;
  color: #222;
  transition: 0.3s ease;
  padding-bottom: 40px;
}

body.dark {
  background: #0d0e11;
  color: #e9e9e9;
}

.fade-in {
  animation: fade 0.5s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   HEADER
================================= */
.header {
  width: 100%;
  padding: 20px 20px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark .header {
  background: rgba(20,20,20,0.35);
  border-color: rgba(255,255,255,0.05);
}

.title {
  font-size: 1.35rem;
  font-weight: 700;
}

.subtitle {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Dark mode button */
.dark-btn {
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s ease;
}

.dark-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ===============================
   CONTAINER & CARDS
================================= */
.container {
  width: 92%;
  max-width: 900px;
  margin: 25px auto;
}

.card {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(14px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 28px;
  animation: fade 0.5s ease;
}

body.dark .card {
  background: rgba(20,20,20,0.40);
  border-color: rgba(255,255,255,0.08);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

/* ===============================
   FORM GRID
================================= */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* ===============================
   INPUTS
================================= */
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.45);
  border: 1px solid #aaa;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

body.dark input,
body.dark select,
body.dark textarea {
  background: rgba(35,35,35,0.55);
  border-color: #333;
  color: #eee;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3C7CFF;
  background: rgba(255,255,255,0.95);
}

body.dark input:focus,
body.dark select:focus,
body.dark textarea:focus {
  border-color: #5A97FF;
  background: rgba(50,50,50,0.92);
}

/* ===============================
   CHECKBOXES
================================= */
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* ===============================
   BUTTONS
================================= */
.btn-primary {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #297BFF, #1C57D6);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 12px 20px;
  background: #444;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  filter: brightness(1.2);
}

/* ===============================
   MOBILE OPTIMIZATION
================================= */
@media (max-width: 600px) {
  .title {
    font-size: 1.15rem;
  }
  .card {
    padding: 20px;
  }
}
