/* ===========================
   APP / DASHBOARD STYLES
   =========================== */

.app-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  background: transparent;
}

/* SIDEBAR */
.app-sidebar {
  width: 260px;
  min-width: 220px;
  background: rgba(20, 22, 35, 0.65);
  backdrop-filter: blur(10px);
  box-shadow: 4px 0 20px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  padding: 1.2em 1em;
  z-index: 5;
}

.app-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FDDD1C;
  margin-bottom: 1.2em;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.app-nav-item {
  padding: 0.7em 1em;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
}
.app-nav-item:hover,
.app-nav-item.active {
  background: rgba(255,255,255,0.18);
  transform: translateX(4px);
}

/* MAIN CONTENT */
.app-content {
  flex: 1;
  padding: 2.2em 2.5em;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #FDDD1C;
}

.app-user {
  display: flex;
  gap: 0.8em;
  align-items: center;
}

.app-user span {
  font-weight: 500;
  opacity: 0.9;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4em;
}

.app-card {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.3em 1.4em;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.app-card-title {
  font-weight: 700;
  font-size: 1.1em;
  color: #fff;
}

.app-card-desc {
  font-size: 0.95em;
  opacity: 0.85;
}

/* BUTTONS */
.btn-action {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.45em 1.2em;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg,#ffd700 40%,#7fff00 100%);
  color: #23264e;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn-action:hover {
  transform: translateY(-2px);
  background: #ffe27c;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  opacity: 0.85;
  margin-top: 3em;
  font-size: 1.1em;
}

/* ===========================
   MOBILE
   =========================== */
@media (max-width: 900px) {
  .app-wrapper {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 0.8em;
    padding: 0.8em 1em;
  }

  .app-nav {
    flex-direction: row;
    gap: 0.4em;
    overflow-x: auto;
  }

  .app-nav-item {
    white-space: nowrap;
  }

  .app-content {
    padding: 1.4em 1.2em;
  }
}