:root {
  /* Colors - Menggunakan warna Bootstrap */
  --color-white: #fff;
  --color-primary: #0dcaf0;
  --color-primary-light: rgba(13, 202, 240, 0.1);
  --color-primary-lighter: rgba(13, 202, 240, 0.05);
  --color-text-dark: #212529;
  --color-text-medium: #6c757d;
  --color-text-light: #adb5bd;
  --color-border: #dee2e6;
  --color-hover: #f8f9fa;
}

body {
  background-color: #f8f9fa;
  font-family: var(--bs-body-font-family);
  margin: 0;
  padding: 0;
}

/* Sidebar */
aside.sidebar {
  background-color: var(--color-white);
  height: 100vh;
  width: 220px;
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  z-index: 1030;
  overflow-y: auto;
}

header.logo-container {
  padding: 1.25rem;
  display: flex;
  align-items: center;
}

.logo-container i {
  margin-right: 0.625rem;
  color: var(--color-text-dark);
}

.logo-text {
  font-weight: bold;
  color: var(--color-text-dark);
  font-size: var(--font-size-large);
}

/* Top Navigation Bar */
header.topbar {
  background-color: var(--color-primary);
  height: 60px;
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  z-index: 1020;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.user-profile {
  float: right;
  height: 60px;
  display: flex;
  align-items: center;
  padding-right: 1.25rem;
  position: relative;
}

.user-avatar {
  width: 35px;
  height: 35px;
  background-color: var(--color-white);
  border: 1px solid black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.625rem;
}

/* Dropdown Menu */
nav.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.user-name {
  color: var(--color-white);
  font-weight: 500;
  margin-right: 0.25rem;
}

.dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.dropdown-icon {
  color: var(--color-white);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--color-white);
  min-width: 160px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1;
  border-radius: 0.25rem;
  margin-top: 0.25rem;
}

.dropdown-content a {
  color: var(--color-text-dark);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: var(--font-size-regular);
}

.dropdown-content a i {
  margin-right: 0.625rem;
}

.dropdown-content a:hover {
  background-color: var(--color-hover);
}

/* Show the dropdown menu when hovering over the trigger */
nav.dropdown:hover .dropdown-content {
  display: block;
}

/* Main Content */
main {
  margin-left: 220px;
  padding-top: 60px;
}

.main-content {
  padding: 1.25rem;
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 0.625rem;
}

.nav-item {
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background-color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Active nav link - text color blue */
.nav-link.active {
  border-left: 3px solid var(--color-primary);
  color: var(--color-primary);
  /* Ensures text is blue on active page */
}

/* Also make active icons blue */
.nav-link.active i {
  color: var(--color-primary);
}

.nav-link i {
  margin-right: 0.625rem;
  width: 20px;
  text-align: center;
}

/* Submenu */
.sub-menu {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.sub-menu.show {
  max-height: 200px;
  transition: max-height 0.3s ease-in;
}

.sub-menu li {
  position: relative;
}

.sub-menu a {
  padding: 0.625rem 0 0.625rem 2.8125rem;
  position: relative;
  font-size: var(--font-size-regular);
  color: var(--color-text-medium);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.sub-menu a:hover {
  background-color: var(--color-primary-lighter);
  color: var(--color-primary);
}

/* Make active submenu items blue */
.sub-menu a.active {
  color: var(--color-primary);
  background-color: var(--color-primary-lighter);
}

.sub-menu li a::before {
  content: "•";
  position: absolute;
  left: 30px;
  color: var(--color-text-light);
}

/* Dashboard Sections */
header.dashboard-header {
  background-color: var(--color-white);
  padding: 0.625rem 0.9375rem;
  border-radius: 0.25rem;
  margin-bottom: 0.9375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid var(--color-border);
}

h1.dashboard-title {
  color: var(--color-primary);
  margin: 0;
  font-weight: bold;
  font-size: x-large;
}

section.dashboard-content {
  background-color: var(--color-white);
  border-radius: 0.25rem;
  min-height: 450px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid var(--color-border);
}

/* Icons */
.rotate-icon {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.nav-link .fa-chevron-down {
  transition: transform 0.3s ease;
}

/* Fixing table styling */
.table thead.bg-primary {
  background-color: var(--color-primary) !important;
}

/* Custom button styling */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #0bacda;
  border-color: #0bacda;
}

.table-header-blue {
  background-color: #77b5fb !important;
}

.table-header-blue th {
  background-color: #77b5fb !important;
  color: white !important;
  border-color: #77b5fb !important;
}

/* Custom styles for detail page */
.table thead th {
  background-color: #77b5fb;
  color: white;
}

.employee-info-section {
  margin-bottom: 20px;
}

.employee-info-row {
  display: flex;
  margin-bottom: 10px;
}

.employee-info-item {
  width: 50%;
  display: flex;
}

.employee-info-label {
  width: 100px;
  font-weight: bold;
}

.employee-info-value {

  font-weight: 500;
}

.action-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.tambah-btn {
  background-color: #77b5fb;
}

.tambah-btn:hover {
  background-color: rgb(91, 157, 233);
  border-color: rgb(91, 157, 233);
}

.page-btn {
  background-color: #77b5fb
}

.page-btn:hover {
  background-color: rgb(91, 157, 233);
  border-color: rgb(91, 157, 233);
}

.btn-view {
  background-color: #6c5ce7;
  color: white;
}

.btn-upload {
  background-color: #00cec9;
  color: white;
}

.edit-btn {
  background-color: #ffc107;
  border-color: #ffc107;
}

.delete-btn {
  background-color: #dc3545;
  border-color: #dc3545;
}

.edit-btn:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}

.delete-btn:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

/* Optional: Efek transisi halus */
.action-btn {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rounded-top-start {
  border-top-left-radius: 0.5rem !important;
}

.rounded-top-end {
  border-top-right-radius: 0.5rem !important;
}

.rounded-bottom-start {
  border-bottom-left-radius: 0.5rem !important;
}

.rounded-bottom-end {
  border-bottom-right-radius: 0.5rem !important;
}

.sort-icon button.fas {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: whitesmoke;
}

.list {
  font-weight: 500;
}

/* Custom styles for hasil akhir page */
.table thead th {
  background-color: #77b5fb;
  color: white;
}

.year-selector {
  width: auto;
  display: inline-block;
}

.sort-icon {
  cursor: pointer;
  margin-left: 4px;
}

.sort-icon.active-asc:after {
  content: "↑";
  margin-left: 2px;
}

.sort-icon.active-desc:after {
  content: "↓";
  margin-left: 2px;
}

.score-cell {
  font-weight: bold;
}

.dropdown-sort {
  width: auto;
}

.active-page {
  background-color: #77b5fb;
  color: white;
}

.highlight {
  background-color: rgba(119, 181, 251, 0.2);
}

.small {
  font-size: 0.7em;
}

.btn-hijau {
  background-color: #53A364;
}

.btn-hijau:hover {
  background-color: #468754;
  /* warna hijau lebih gelap saat hover */
  color: white;
  /* pastikan teks tetap terbaca */
}


.btn-view:hover {
  background-color: #5a4bd1;
  /* sedikit lebih gelap */
  color: white;
}

.btn-upload:hover {
  background-color: #00b8b3;
  /* sedikit lebih gelap */
  color: white;
}

.login {
  background-color: #f8f9fa;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.btn-biru {
  background-color: #4a9df8;
}

.btn-biru:hover {
  background-color: #3a8ae8;
}

.bg-blue {
  background-color: #77b5fb !important;
}