/* ============================================
   Earth-Tone Dark Theme (Clean & Unified)
   ============================================ */

:root {
  --bg: #2e2b29;        /* main background */
  --card: #3a3633;      /* card background */
  --muted: #c6bba7;     /* muted text */
  --text: #f5e8c7;      /* main text */
  --accent: #7c5f46;    /* button bg */
  --accent-2: #c9673c;  /* red/terracotta */
  --accent-3: #6b8a3c;  /* olive */
  --radius: 14px;
}

/* GLOBAL RESET */
* {
  box-sizing: border-box;
  font-family: Inter, system-ui, "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}


/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(20,18,16,0.4);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: linear-gradient(180deg,#efe1c6,#dac6a8);
  padding: 6px;
}

.title {
  font-weight: 700;
  font-size: 16px;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.user-short {
  font-size: 13px;
  color: var(--muted);
  padding-right: 12px;
}

/* Hamburger */
.hamburger {
  width: 40px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--muted);
  margin: 3px 0;
  border-radius: 2px;
}

/* Dropdown */
.menu-dropdown {
  position: absolute;
  right: 0;
  top: 44px;
  background: var(--card);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(3,6,10,0.6);
  min-width: 180px;
}

.menu-item {
  width: 100%;
  display: block;
  padding: 8px;
  border: none;
  background: transparent;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
}
.menu-item:hover {
  background: rgba(255,255,255,0.05);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1100px;
  margin: 18px auto;
  padding: 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid #4a443f;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}

/* HERO SECTION */
.hero {
  display: flex;
  gap: 18px;
  align-items: center;
}
.hero-left {
  flex: 1;
}
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}
.campus-photo {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 34px;
}
.muted {
  color: var(--muted);
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */

button {
  background: var(--accent);
  border: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
button.secondary {
  background: #5d4a3a;
}
button:hover {
  opacity: 0.9;
}

/* Inputs */
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text);
}

/* ============================================
   MODALS
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.6);
}
.hidden {
  display: none;
}

.modal-card {
  width: 420px;
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.9);
}

/* ============================================
   DASHBOARD + TILES
   ============================================ */

#mainArea {
  margin-top: 16px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.tile {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #3a3633;
  border-radius: 12px;
  border: 1px solid #4a443f;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  align-items: center;
  cursor: pointer;
  transition: 0.12s ease;
}

.tile:hover {
  transform: translateY(-3px);
  background: #443f3a;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.tile img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.tile .meta h4 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.tile .meta p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  margin: 30px auto 0;
  max-width: 900px;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  background: transparent;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }
  .hero-right {
    width: 100%;
  }
  h1 {
    font-size: 26px;
  }
}

/* ===== Select dropdown theming ===== */

select {
  background: #3a3633;            /* same as cards */
  color: var(--text);
  border: 1px solid #4a443f;
}

/* options list background (works in most browsers) */
select option {
  background: #3a3633;
  color: var(--text);
}

/* on focus, keep it in theme */
select:focus {
  outline: none;
  border-color: #e2b04a;
  box-shadow: 0 0 0 1px rgba(226,176,74,0.4);
}
