html,
body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

* {
  box-sizing: border-box;
}

@import url('responsive-enhancements.css');

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

body.login-page {
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow-y: auto;
}

body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("Kampus Unesa 5.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0.95;
  z-index: -2;
}

body.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: -1;
}

.hero-section,
.info-section,
main {
  flex: 1;
  min-height: calc(100vh - 80px);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  border-radius: 0;
  border-bottom: 3px solid #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  z-index: 1000;
  overflow: visible;
  backdrop-filter: blur(20px);
}

body.main-page {
  padding-top: 69px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: -2px;
  margin-left: 8px;
}

.topbar-greeting {
  font-weight: 600;
  font-size: 0.75rem;
  color: #1e40af;
  margin-bottom: 2px;
}

.topbar-user {
  font-weight: 700;
  font-size: 0.9rem;
}

.topbar-profile {
  padding: 0;
  border: 2px solid rgba(15, 23, 42, 0.2);
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.topbar-profile:hover {
  border-color: rgba(37, 99, 235, 0.8);
  background-color: rgba(37, 99, 235, 0.1);
}

.topbar-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.topbar-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.topbar-actions .btn {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.15s ease;
}

.topbar-actions .btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.topbar-actions .btn-primary {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.topbar-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.5);
}

.topbar-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 8px;
}

.topbar-nav a:hover {
  text-decoration: underline;
}

/* Navigation Dropdown */
.nav-item {
  position: relative;
}

.nav-item > a {
  padding: 8px 12px;
  display: block;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  min-width: 180px;
  z-index: 10000;
  overflow: hidden;
  margin-top: 4px;
  padding: 6px 0;
  pointer-events: auto;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.active > .nav-dropdown {
  display: block;
  pointer-events: auto;
}

.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.nav-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease;
  cursor: pointer;
}

.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #e0e7ff;
  cursor: pointer;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.card-header {
  padding: 1.5rem 1.5rem 0.5rem;
  position: relative;
}

.back-btn {
  position: fixed;
  left: 1rem;
  top: 1.5rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  line-height: 1;
  border-radius: 0;
  background: transparent;
  border: none;
  color: rgba(15, 23, 42, 0.85);
  text-decoration: none;
  font-weight: 1800;
  text-shadow: 0 0 1px rgba(15, 23, 42, 0.6);
  transition: color 0.15s ease;
  z-index: 100;
  transform: translateY(-5px);
  cursor: pointer;
}

.back-btn:hover {
  color: #1e40af;
}

.card-header h1 {
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.tab-nav button {
  flex: 1;
  padding: 0.75rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab-nav button:hover {
  background: rgba(255, 255, 255, 0.85);
}

.tab-nav button.active {
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.9);
}

.card-body {
  padding: 1.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  font-size: 1rem;
}

.actions {
  margin-top: 1.25rem;
}

.actions button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 12px;
  background: #1e40af;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.actions button:hover {
  background: #1e3a8a;
}

.hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.7);
}

@media (max-width: 480px) {
  .card {
    border-radius: 14px;
  }

  .card-header {
    padding: 1.25rem 1.25rem 0.5rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  /* Memperkecil foto profil di mode mobile */
  .topbar-profile {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 18px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.modal-close:hover {
  color: #000;
}

.modal-content h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.profile-photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #1e40af;
  background-size: cover;
  background-position: center;
}

.profile-photo span {
  font-size: 3rem;
  font-weight: bold;
  color: #1e40af;
}

/* Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.zoom-controls label {
  font-weight: 600;
  font-size: 0.9rem;
}

.zoom-controls input[type="range"] {
  width: 150px;
  cursor: pointer;
}

.field input[type="file"] {
  padding: 0.5rem;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}

.hamburger-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.hamburger-menu:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hamburger-dropdown {
  display: none;
  position: fixed;
  top: 60px;
  right: 10px;
  left: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: auto;
  max-width: 300px;
  margin: 0 auto;
  z-index: 1001;
  overflow: hidden;
}

.hamburger-dropdown.active {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hamburger-dropdown a {
  display: block;
  padding: 14px 18px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.hamburger-dropdown a:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
}

.hamburger-dropdown a:last-child {
  border-bottom: none;
}

/* Hamburger Navigation Dropdown */
.hamburger-nav-item {
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.hamburger-nav-item:last-child {
  border-bottom: none;
}

.hamburger-nav-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.hamburger-nav-item > a::after {
  content: '▾';
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.hamburger-nav-item.active > a::after {
  transform: rotate(180deg);
}

.hamburger-nav-dropdown {
  display: none;
  background: #f8fafc;
  padding: 8px 0;
}

.hamburger-nav-item.active .hamburger-nav-dropdown {
  display: block;
  animation: slideDown 0.2s ease;
}

.hamburger-nav-dropdown a {
  display: block;
  padding: 10px 18px 10px 28px;
  color: #475569;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
}

.hamburger-nav-dropdown a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
}

/* Settings Menu (3 dots) */
.settings-menu {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  gap: 3px;
}

.settings-menu span {
  display: block;
  width: 4px;
  height: 4px;
  background-color: #ffffff;
  border-radius: 50%;
}

.settings-menu:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.settings-dropdown {
  display: none;
  position: fixed;
  top: 60px;
  right: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 160px;
  z-index: 1001;
  overflow: hidden;
}

.settings-dropdown.active {
  display: block;
  animation: slideDown 0.2s ease;
}

.settings-dropdown a,
.settings-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 18px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.95rem;
}

.settings-dropdown a:hover,
.settings-dropdown button:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(59, 130, 246, 0.85) 100%), url("Kampus Unesa 5.jpg");
  background-size: cover;
  background-position: center;
  padding: 90px 16px;
  text-align: center;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -100px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: #e0e7ff;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-btn {
  display: inline-block;
  padding: 4px 16px;
  background: #f59e0b;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.7rem;
  transition: background 0.2s ease;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 0.9rem;
  color: #1e40af;
  margin-bottom: 8px;
  margin-top: 8px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  margin: 4px auto 0;
  border-radius: 2px;
}

/* Info Cards Section */
.info-section {
  padding: 12px 12px;
  background: #f8fafc;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
}

.info-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.info-card h3 {
  color: #1e40af;
  font-size: 0.75rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.info-card p {
  color: #64748b;
  font-size: 0.65rem;
  line-height: 1.2;
  margin: 0;
}

/* Fakultas Section */
.fakultas-section {
  padding: 12px 12px;
  background: #ffffff;
}

.fakultas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.fakultas-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease;
}

.fakultas-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
}

.fakultas-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.fakultas-card h3 {
  color: #1e40af;
  font-size: 0.7rem;
  margin-bottom: 0;
  font-weight: 600;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff;
  padding: 12px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  font-size: 0.75rem;
  margin-bottom: 4px;
  font-weight: 600;
  border-bottom: 2px solid #fbbf24;
  padding-bottom: 2px;
  display: inline-block;
}

.footer-section p {
  font-size: 0.6rem;
  margin: 2px 0;
  line-height: 1.2;
}

.social-links {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.7rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-links a.youtube {
  background: #ff0000;
}

.social-links a.facebook {
  background: #1877f2;
}

.social-links a.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a.twitter {
  background: #000000;
}

.social-links svg {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  text-align: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  font-size: 0.55rem;
  margin: 0;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .topbar {
    height: 55px;
    padding: 0 0.75rem;
  }

  body.main-page {
    padding-top: 59px;
  }

  .topbar-nav {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .topbar-left {
    gap: 0;
  }

  .topbar-user-info {
    display: none;
  }

  .topbar-profile {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .topbar-actions .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  .hero-section {
    min-height: 160px;
    padding: 24px 16px;
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .info-cards,
  .fakultas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamburger-dropdown,
  .settings-dropdown {
    top: 55px;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 55px;
    padding: 0 0.75rem;
  }

  body.main-page {
    padding-top: 59px;
  }

  .topbar-actions .btn {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .hero-section {
    min-height: 180px;
    padding: 30px 16px;
  }

  .hero-content h1 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .info-cards,
  .fakultas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .info-card,
  .fakultas-card {
    padding: 6px;
  }

  .info-icon,
  .fakultas-icon {
    font-size: 1rem;
  }

  .info-card h3,
  .fakultas-card h3 {
    font-size: 0.65rem;
  }

  .info-card p {
    font-size: 0.6rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3 {
    border-bottom: none;
  }

  .social-links {
    justify-content: center;
  }

  .hamburger-dropdown,
  .settings-dropdown {
    top: 55px;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 55px;
    padding: 0 0.5rem;
  }

  body.main-page {
    padding-top: 59px;
  }

  .hero-section {
    min-height: 150px;
    padding: 20px 12px;
  }

  .hero-content h1 {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .hero-btn {
    padding: 6px 14px;
    font-size: 0.65rem;
  }

  .section-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
    margin-top: 6px;
  }

  .info-section,
  .fakultas-section {
    padding: 10px 8px;
  }

  .info-cards,
  .fakultas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .info-card,
  .fakultas-card {
    padding: 5px;
    border-radius: 6px;
  }

  .info-icon,
  .fakultas-icon {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .info-card h3,
  .fakultas-card h3 {
    font-size: 0.6rem;
    margin-bottom: 1px;
  }

  .info-card p,
  .fakultas-card p {
    font-size: 0.55rem;
    line-height: 1.1;
  }

  .hamburger-dropdown,
  .settings-dropdown {
    top: 52px;
    right: 5px;
    left: 5px;
  }
}
/* Menampilkan info user dan nama pada tampilan mobile (Android/Smartphone) */
@media (max-width: 768px) {
  .topbar-user-info {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Membatasi lebar teks agar tidak merusak layout topbar jika nama panjang */
  .topbar-user {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
  }
  
  .topbar-greeting {
    font-size: 0.7rem;
  }
}

/* Penyesuaian ekstra untuk layar ponsel yang lebih sempit */
@media (max-width: 480px) {
  .topbar-user {
    max-width: 75px;
  }

  /* Memperkecil lagi foto profil di layar sangat sempit */
  .topbar-profile {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }
}

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #1e40af; }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Color Blindness Filters */
body.cb-achromatopsia { filter: grayscale(100%); }
body.cb-protanopia { filter: sepia(30%) hue-rotate(-15deg) saturate(120%); }
body.cb-tritanopia { filter: sepia(30%) hue-rotate(135deg) saturate(120%); }

/* Dark Mode */
body.dark-mode { background-color: #0f172a !important; color: #f8fafc !important; }
body.dark-mode .card, body.dark-mode .modal-content, body.dark-mode .feature-card, body.dark-mode .info-card, body.dark-mode .fakultas-card, body.dark-mode .news-card, body.dark-mode .facility-card, body.dark-mode .report-card, body.dark-mode .feedback-card, body.dark-mode .detail-content { background: #1e293b !important; color: #f8fafc !important; border-color: #334155 !important; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode p, body.dark-mode span, body.dark-mode label, body.dark-mode td, body.dark-mode th { color: #f1f5f9 !important; }
body.dark-mode .topbar { background: #0f172a !important; border-bottom-color: #1e293b !important; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
body.dark-mode .footer { background: #0f172a !important; border-top: 1px solid #1e293b; }
body.dark-mode .section-header p, body.dark-mode .feature-card p, body.dark-mode .info-card p { color: #cbd5e1 !important; }
body.dark-mode .hamburger-dropdown, body.dark-mode .settings-dropdown, body.dark-mode .nav-dropdown { background: #1e293b !important; box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
body.dark-mode .hamburger-dropdown a, body.dark-mode .settings-dropdown a, body.dark-mode .settings-dropdown button { color: #f8fafc !important; border-bottom-color: #334155 !important; }
body.dark-mode .hamburger-dropdown a:hover, body.dark-mode .settings-dropdown a:hover, body.dark-mode .settings-dropdown button:hover { background: rgba(255,255,255,0.1) !important; color: #60a5fa !important; }
