/* styles.css */
:root {
  --primary: #0da86f;
  --primary-dark: #098154;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Responsive Navigation & Topbar --- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 8px;
  font-size: 0.9rem;
}

.brand strong {
  font-size: 0.95rem;
  display: block;
}

.brand small {
  color: #64748b;
  font-size: 0.75rem;
}

/* Mobile & Tablet Friendly Details Menu Dropdown */
.site-menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.9rem;
}

.site-menu nav {
  position: absolute;
  right: 1rem;
  top: 60px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  min-width: 160px;
}

.site-menu nav a {
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-menu nav a:hover {
  background: #f8fafc;
  color: var(--primary);
}

/* --- Cards & General Layouts --- */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.hero {
  padding: 2.5rem 0;
}

.hero-grid, .hero-grid.two-col, .form-grid.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --- Buttons --- */
.primary-btn, .secondary-btn, .ghost-btn {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.primary-btn { background: var(--primary); color: #fff; border: none; }
.primary-btn:hover { background: var(--primary-dark); }
.secondary-btn { background: #e2e8f0; color: var(--text); border: none; }
.ghost-btn { background: transparent; border: 1px solid var(--border); color: var(--text); }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Forms & Inputs --- */
label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 168, 111, 0.15);
}

.file-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hidden { display: none !important; }

/* --- Admin Theme Styling --- */
.admin-body { background: #0f172a; color: #f8fafc; }
.admin-main { padding: 2rem 0; }
.notice-item-card { background: #1e293b; border: 1px solid #334155; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.admin-login-block {
  background: #ffffff;
  color: #1e293b;
  padding: 2rem;
  border-radius: 12px;
  max-width: 420px;
  margin: 2rem auto;
}

/* ==========================================================
   TABLET & IPAD BREAKPOINT (Min-Width: 768px)
   ========================================================== */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .hero-grid, .hero-grid.two-col, .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-actions {
    flex-direction: row;
  }
  .primary-btn, .secondary-btn, .ghost-btn {
    width: auto;
  }
  .file-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .site-menu nav {
    position: static;
    box-shadow: none;
    border: none;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
  }
  .site-menu summary { display: none; }
}

/* ==========================================================
   DESKTOP BREAKPOINT (Min-Width: 1024px)
   ========================================================== */
@media (min-width: 1024px) {
  .hero { padding: 4rem 0; }
  .dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
  }
  .file-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}