/* 
  Sistem Rekomendasi Karier Mahasiswa - UNU Cirebon
  Custom CSS Theme & Responsive Sidebar Layout
*/

:root {
  --unu-green: #006837;
  --unu-green-dark: #004d28;
  --unu-green-light: #e6f3eb;
  --unu-gold: #f1b813;
  --unu-gold-hover: #d9a309;
  --unu-red: #d32f2f;
  --sidebar-width: 260px;
  --topbar-height: 65px;
  --bg-light: #f4f6f9;
  --card-border-radius: 14px;
}

body {
  font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: #333333;
  overflow-x: hidden;
}

/* ---------------------------------------------------
   MAIN WRAPPER & SIDEBAR LAYOUT
--------------------------------------------------- */
#wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  min-height: 100vh;
}

/* SIDEBAR STYLING */
#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--unu-green-dark) 0%, var(--unu-green) 100%);
  color: #ffffff;
  transition: all 0.3s ease-in-out;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-header {
  padding: 20px 15px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar .sidebar-header img {
  max-width: 75px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

#sidebar .sidebar-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#sidebar .sidebar-header small {
  color: var(--unu-gold);
  font-weight: 600;
  font-size: 0.75rem;
}

#sidebar ul.components {
  padding: 15px 10px;
  margin: 0;
  list-style: none;
  flex: 1;
  overflow-y: auto;
}

#sidebar ul li {
  margin-bottom: 6px;
}

#sidebar ul li a {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.25s ease;
}

#sidebar ul li a i {
  font-size: 1.1rem;
  margin-right: 12px;
  width: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}

#sidebar ul li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

#sidebar ul li a:hover i {
  color: var(--unu-gold);
}

#sidebar ul li.active a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  border-left: 4px solid var(--unu-gold);
}

#sidebar ul li.active a i {
  color: var(--unu-gold);
}

#sidebar .sidebar-footer {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------
   CONTENT AREA
--------------------------------------------------- */
#content {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.top-navbar {
  height: var(--topbar-height);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.top-navbar .btn-hamburger {
  background: var(--unu-green-light);
  color: var(--unu-green);
  border: none;
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-navbar .btn-hamburger:hover {
  background: var(--unu-green);
  color: #ffffff;
}

.top-navbar .page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--unu-green-dark);
  margin: 0;
}

.top-navbar .user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-navbar .user-profile-badge .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--unu-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-content {
  padding: 25px;
  flex: 1;
}

/* ---------------------------------------------------
   RESPONSIVE SIDEBAR BREAKPOINTS
--------------------------------------------------- */
@media (max-width: 991.98px) {
  #sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
  }
  #sidebar.active {
    margin-left: 0;
  }
  #content {
    width: 100%;
    margin-left: 0;
  }
  .top-navbar .btn-hamburger {
    display: flex;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    top: 0;
    left: 0;
  }
  .sidebar-overlay.active {
    display: block;
  }
}

/* ---------------------------------------------------
   CARDS & DASHBOARD ELEMENTS
--------------------------------------------------- */
.card-custom {
  border: none;
  border-radius: var(--card-border-radius);
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 24px;
}

.card-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-stat {
  border-left: 5px solid var(--unu-green);
}

.card-stat.gold {
  border-left-color: var(--unu-gold);
}

.card-stat.red {
  border-left-color: var(--unu-red);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--unu-green-light);
  color: var(--unu-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.gold {
  background: #fef9e7;
  color: #d9a309;
}

.stat-icon.red {
  background: #fde8e8;
  color: var(--unu-red);
}

/* ---------------------------------------------------
   BUTTONS & UI COMPONENTS
--------------------------------------------------- */
.btn-unu-primary {
  background-color: var(--unu-green);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.btn-unu-primary:hover {
  background-color: var(--unu-green-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 104, 55, 0.3);
}

.btn-unu-gold {
  background-color: var(--unu-gold);
  color: #212529;
  border: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.btn-unu-gold:hover {
  background-color: var(--unu-gold-hover);
  color: #000000;
  box-shadow: 0 4px 12px rgba(241, 184, 19, 0.3);
}

/* ---------------------------------------------------
   QUIZ / QUESTIONNAIRE STYLING
--------------------------------------------------- */
.quiz-container {
  max-width: 750px;
  margin: 0 auto;
}

.quiz-progress-bar {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
  overflow: hidden;
  margin-bottom: 20px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--unu-green) 0%, var(--unu-gold) 100%);
  transition: width 0.3s ease;
}

.likert-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0;
}

.likert-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.likert-option:hover {
  border-color: var(--unu-green);
  background: var(--unu-green-light);
}

.likert-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.likert-option input[type="radio"]:checked + .likert-label-text {
  font-weight: 700;
  color: var(--unu-green-dark);
}

.likert-option.selected {
  border-color: var(--unu-green);
  background: var(--unu-green-light);
  box-shadow: 0 2px 8px rgba(0, 104, 55, 0.15);
}

.likert-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.likert-option.selected .likert-indicator {
  border-color: var(--unu-green);
  background: var(--unu-green);
}

.likert-option.selected .likert-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

/* ---------------------------------------------------
   SPLIT LOGIN CARD DESIGN (REF MATCHING)
--------------------------------------------------- */
.login-body {
  background: #eef2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
}

.login-split-card {
  max-width: 1050px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: none;
}

.login-hero-panel {
  background: linear-gradient(160deg, #005c31 0%, #006837 45%, #004221 100%);
  color: #ffffff;
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

.login-hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.login-logo-box {
  width: 65px;
  height: 65px;
  background: #ffffff;
  border-radius: 16px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.login-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.login-hero-title small {
  color: var(--unu-gold);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
}

.login-hero-title h4 {
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.login-hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.login-feature-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.login-feature-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.login-feature-pill i {
  font-size: 1.1rem;
  color: var(--unu-gold);
}

.login-hero-footer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* FORM PANEL RIGHT */
.login-form-panel {
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-segmented-tabs {
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
  border: none;
}

.login-segmented-tabs .nav-item {
  flex: 1;
}

.login-segmented-tabs .nav-link {
  width: 100%;
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #64748b;
  background: transparent;
  transition: all 0.25s ease;
}

.login-segmented-tabs .nav-link.active {
  background: #ffffff;
  color: var(--unu-green);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-with-icon .form-control {
  padding-left: 48px;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.95rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.input-with-icon .form-control:focus {
  border-color: var(--unu-green);
  box-shadow: 0 0 0 4px rgba(0, 104, 55, 0.12);
}

.input-with-icon .form-control:focus + .input-icon {
  color: var(--unu-green);
}

.btn-login-submit {
  background-color: var(--unu-green);
  color: #ffffff;
  border-radius: 12px;
  height: 52px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login-submit:hover {
  background-color: var(--unu-green-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 104, 55, 0.25);
}
