/* ===== BASE ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0a0f1a;
  color: #e6e6e6;
  display: flex;
  height: 100vh;
}

/* ===== SIDEBAR ===== */
#sidebar {
  width: 230px;
  background: #0f1726;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid #1b2a44;
}

#sidebar h2 {
  margin: 10px 0 15px;
  font-size: 1.2rem;
}

#sidebar button {
  background: #111c2e;
  border: 1px solid #1b2a44;
  color: #cbd5e1;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: 0.15s;
}

#sidebar button:hover {
  background: #16243a;
  border-color: #2b6cff;
  color: white;
}

/* ===== MAIN ===== */
#main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* ===== TOP BAR ===== */
#topbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1b2a44;
  background: #0f1726;
  color: white;
}

#topbar button {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #2b6cff;
  color: white;
  cursor: pointer;
}

/* ===== GRID ===== */
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* CARD CENTERED LIKE HOMARR */
.card {
  background: #0f1726;
  border: 1px solid #1b2a44;
  border-radius: 14px;
  padding: 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* CENTER THE TITLE */
.title {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

/* BIG CENTER ICON */
.icon {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
}

/* DESCRIPTION */
.desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #9aa4b2;
}
/* COMPOSE */
.actions a {
  color: #4da3ff;
  text-decoration: none;
}

.actions a:hover {
  color: #7cc0ff;
}

/* ===== MODAL ===== */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
}

#modalContent {
  background: #0f1726;
  padding: 20px;
  border-radius: 12px;
  width: 420px;
  border: 1px solid #1b2a44;
}
.card { cursor: pointer; transition: border-color 0.15s; }
.card:hover { border-color: #2b6cff; }
input:focus { outline: none; border-color: #2b6cff; }
/* ===== MOBILE SIDEBAR TOGGLE ===== */
#menuToggle {
  display: none;
  font-size: 18px;
}

/* Mobile layout */
@media (max-width: 768px) {
  #menuToggle {
    display: block;
  }

  #sidebar {
    position: fixed;
    top: 0;
    left: -400px; /* hidden by default */
    height: 100%;
    width: 230px;
    z-index: 1000;
    transition: left 0.25s ease;
  }

  #sidebar.active {
    left: 0; /* slide in */
  }

  #main {
    width: 100%;
  }
}
