/* jobox.tv — Sidebar Navigation Theme (with Icons + Animations) */

@import url("https://unpkg.com/lucide-static@latest/font/lucide.css");

/* === Color Variables === */
:root {
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --surface-dark: #1E2A38;
  --text: #1E2A38;
  --text-light: #F6F8FA;
  --muted: #6B7280;
  --accent: #3478F6;
  --accent-hover: #255dd6;
  --accent-soft: #2EE6C5;
  --border: #E5E9EE;
  --success: #10B981;
  --error: #EF4444;
}

/* === Base Layout === */
body {
  margin: 0;
  font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  display: flex;
  min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  transition: width 0.3s ease;
}

.sidebar h1 {
  font-size: 1.4rem;
  text-align: center;
  padding: 20px 0 10px;
  margin: 0;
  letter-spacing: -0.02em;
  color: #fff;
}

.sidebar .user-info {
  text-align: center;
  font-size: 0.9em;
  color: rgba(255,255,255,0.8);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

/* Menu Items */
.sidebar nav a,
.sidebar nav button.dropbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #fff;
  text-align: left;
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
}

.sidebar nav a i,
.sidebar nav button.dropbtn i {
  font-size: 1.1em;
  opacity: 0.9;
}

.sidebar nav a:hover,
.sidebar nav button.dropbtn:hover {
  background-color: rgba(255,255,255,0.15);
  border-left-color: #fff;
  transform: translateX(2px);
}

/* === Dropdowns === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.1);
  padding-left: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.dropdown-content a {
  padding: 8px 24px;
  font-size: 0.9em;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown:hover .dropdown-content {
  max-height: 400px;
  opacity: 1;
}

/* === Main Content Area === */
main {
  flex: 1;
  margin-left: 240px;
  padding: 30px;
  transition: margin-left 0.3s ease;
}

/* === Buttons === */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-muted {
  background: #E5E7EB;
  color: var(--text);
}
.btn-ok {
  background-color: var(--success);
  color: #fff;
}
.btn-err {
  background-color: var(--error);
  color: #fff;
}

/* === Mobile Toggle === */
.toggle-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 18px;
  z-index: 100;
}

@media (max-width: 900px) {
  .sidebar {
    width: 0;
    overflow: hidden;
  }
  main {
    margin-left: 0;
  }
  .toggle-btn {
    display: block;
  }
  .sidebar.open {
    width: 220px;
  }
}

/* === Scrollbar Styling === */
.sidebar nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.menu-header {
  padding: 8px 24px;
  font-weight: bold;
  color: #a5b4fc;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.9;
}