/* Base Styles */
body {
  background-image: url("../image/walpaper.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.glass-effect {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Terminal Styles */
.terminal {
  font-family: monospace;
  background: #1a1a1a;
  color: #00ff00;
  padding: 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 0, 0.3) transparent;
}

/* Terminal Scrollbar untuk WebKit browsers */
.terminal::-webkit-scrollbar {
  width: 8px;
}

.terminal::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.terminal::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 0, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.terminal::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 0, 0.5);
}

/* Terminal Light Mode Scrollbar */
body.light-mode .terminal {
  scrollbar-color: rgba(46, 125, 50, 0.3) transparent;
}

body.light-mode .terminal::-webkit-scrollbar-thumb {
  background: rgba(46, 125, 50, 0.3);
}

body.light-mode .terminal::-webkit-scrollbar-thumb:hover {
  background: rgba(46, 125, 50, 0.5);
}

.terminal p {
  line-height: 1.2;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 0;
  padding: 1px 0;
}

#user-input {
  width: calc(100% - 120px);
  display: inline-block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-height: 1.2em;
  line-height: 1.2;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: #333;
  border-radius: 0.5rem 0.5rem 0 0;
  user-select: none;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn.red {
  background: #ff5f57;
}
.btn.yellow {
  background: #ffbd2e;
}
.btn.green {
  background: #27c93f;
}

/* Calendar Styles */
.calendar {
  position: fixed;
  bottom: 65px;
  right: 8px;
  background: rgba(28, 28, 28, 0.95);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  z-index: 1000;
  max-width: 90vw;
  width: 300px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.calendar.show {
  transform: translateX(0);
  opacity: 1;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  gap: 0.3rem;
}

.calendar-day {
  text-align: center;
  font-size: 0.8rem;
  padding: 0.3rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  min-width: 30px;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
  background: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

/* Blinking Cursor */
.blinking-cursor {
  color: #00ff00;
  font-weight: bold;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Start Menu Styles */
.start-menu {
  position: fixed;
  bottom: 65px;
  left: 8px;
  transform: translateX(-100%);
  width: 600px;
  max-height: 700px;
  background: rgba(32, 32, 32, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  color: white;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.start-menu.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  display: block;
}

.search-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 100%;
}

.pinned-section {
  margin-bottom: 2rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.app-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 0.5rem;
}

.app-name {
  font-size: 0.8rem;
  color: #fff;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mode-switch {
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-image {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: url("../image/user.webp");
  background-size: cover;
  background-position: center;
}

/* File Manager Styles */
.file-manager {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 1300px;
  max-width: 95vw;
  height: 80vh;
  background: rgba(28, 28, 28, 0.95);
  color: white;
  backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.overlay.show {
  display: block;
}

.file-manager.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.file-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header-right::after {
  content: "\f0b0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
  font-size: 0.9rem;
}

body.light-mode .header-right::after {
  color: #333;
}

.filter-dropdown {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  width: 170px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
}

.filter-dropdown option {
  background: rgba(28, 28, 28, 0.95);
  color: white;
  padding: 0.5rem;
}

body.light-mode .filter-dropdown option {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.filter-dropdown:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.light-mode .filter-dropdown:hover {
  background: rgba(0, 0, 0, 0.05);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.control-btn.close {
  background: #ff5f57;
}
.control-btn.minimize {
  background: #ffbd2e;
}
.control-btn.maximize {
  background: #27c93f;
}

.file-manager-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  background: rgba(40, 40, 40, 0.5);
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.main-content {
  padding: 1rem;
  overflow-y: auto;
  height: 100%;
}

/* Styling untuk WebKit browsers (Chrome, Safari, dll) */
.main-content::-webkit-scrollbar {
  width: 8px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Light mode scrollbar */
body.light-mode .main-content {
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

body.light-mode .main-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
}

body.light-mode .main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  height: fit-content;
}

.files-grid.certificates-grid,
.files-grid.projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.files-grid.documents-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  cursor: pointer;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.file-item.project:hover,
.file-item.certificate:hover {
  background: rgba(255, 255, 255, 0.1);
}

.file-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: #64748b;
}

.file-name {
  font-size: 0.9rem;
  word-break: break-word;
}

.file-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.file-item.certificate {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.file-item.certificate:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.file-item.certificate:hover img {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.file-item.certificate .file-name {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

.item-details {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
}

.item-details .role {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.item-details .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.item-details .details-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

.item-details .description {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 1rem;
}

.item-details .view-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
  margin-top: auto;
}

/* Light Mode untuk item details */
body.light-mode .item-details {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

body.light-mode .item-details .role {
  color: #1d4ed8;
}

/* Tech Stack Icons */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tech-stack i {
  font-size: 1.6rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-stack i:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.item-details .issuer,
.item-details .date {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

/* Light Mode untuk item details */
body.light-mode .item-details {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .item-details .description {
  color: #333;
}

body.light-mode .item-details .view-link {
  background: #2563eb;
  color: white;
}

body.light-mode .item-details .view-link:hover {
  background: #1d4ed8;
}

/* Light Mode Styles */
body.light-mode {
  background-color: #f0f0f0;
}

/* Light Mode Taskbar */
body.light-mode .glass-effect {
  background: rgba(255, 255, 255, 0.85);
}

body.light-mode #datetime-container {
  color: #333;
}

body.light-mode .start-menu {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode button.hover\:bg-white\/10:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .search-box {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .search-box input {
  color: #333;
}

body.light-mode .search-box i {
  color: #666;
}

body.light-mode .app-name {
  color: #333;
}

body.light-mode .app-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .mode-switch {
  color: #333;
}

body.light-mode .terminal-header {
  background: #e0e0e0;
}

body.light-mode .terminal {
  background: #f5f5f5;
  color: #333;
}

body.light-mode .terminal .text-green-400 {
  color: #2e7d32;
}

body.light-mode .calendar {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

body.light-mode #currentMonth,
body.light-mode #prevMonth,
body.light-mode #nextMonth {
  color: #333;
}

body.light-mode .calendar-day {
  color: #333;
}

body.light-mode .calendar-day:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .calendar-day.today {
  background: rgba(0, 0, 0, 0.2);
}

body.light-mode .file-manager {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

body.light-mode .file-manager-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .file-manager-header .text-white {
  color: #333;
}

body.light-mode .sidebar {
  background: rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .sidebar-item {
  color: #333;
}

body.light-mode .sidebar-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .sidebar-item.active {
  background: rgba(0, 0, 0, 0.15);
}

body.light-mode .file-item {
  color: #333;
}

body.light-mode .file-item.project:hover,
body.light-mode .file-item.certificate:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .file-icon {
  color: #475569;
}

body.light-mode .file-item.certificate {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .file-item.certificate:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-dropdown {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
}

/* Dark Mode Styles (Default) */
#datetime-container {
  color: white;
}

#currentMonth,
#prevMonth,
#nextMonth {
  color: white;
}

/* Desktop Apps Styles */
.desktop-apps-container {
  width: 100%;
  max-width: 4xl;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 3rem;
}

.desktop-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  max-width: 400px;
  margin: 0 auto;
}

.desktop-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 100%;
  height: 100%;
}

.desktop-app:hover {
  transform: scale(1.05);
}

.desktop-app span {
  text-align: center;
  margin-top: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

body.light-mode .desktop-app span {
  color: #000;
  text-shadow: none;
}

/* Search Results Styles */
.search-results {
  margin-bottom: 1rem;
}

.search-results .apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

.search-results .app-name {
  font-size: 0.8rem;
}

/* Not Found Message Style */
.not-found-message {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
}

.not-found-message i {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.not-found-message p {
  font-size: 0.9rem;
  opacity: 0.7;
}

body.light-mode .not-found-message i,
body.light-mode .not-found-message p {
  color: #666;
}

.hidden {
  display: none !important;
}

/* Video Button & Modal Styles */

body.light-mode #videoBtn {
  color: #333;
}

#videoModal {
  transition: opacity 0.3s ease;
  z-index: 5000;
}

#videoModal.hidden {
  opacity: 0;
  pointer-events: none;
}

#videoModal:not(.hidden) {
  opacity: 1;
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #333;
  border-radius: 0.5rem 0.5rem 0 0;
  user-select: none;
}

.video-header-left {
  display: flex;
  align-items: center;
}

.video-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.video-header-right .playlist-icon {
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.video-header-right .playlist-icon:hover {
  color: #e0e0e0;
}

body.light-mode .video-header-right .playlist-icon {
  color: #333;
}

body.light-mode .video-header-right .playlist-icon:hover {
  color: #666;
}

.video-header-title {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-mode .video-header-title {
  color: #333;
}

.video-buttons {
  display: flex;
  gap: 0.5rem;
}

#videoContainer {
  transition: all 0.3s ease;
  width: 100%;
  max-width: 64rem; /* Sama dengan terminal */
  margin-top: -5vh;
}

.video-container {
  position: relative;
  width: 100%;
  height: 550px; /* Sama dengan tinggi terminal */
}

#youtubePlayer {
  width: 100%;
  height: 100%;
  border-radius: 0 0 0.5rem 0.5rem;
}

#videoModal .window-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
}

#videoModal .btn.red {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Preview Modal Styles */
#previewModal {
  transition: opacity 0.3s ease;
  z-index: 5000;
}

#previewModal.hidden {
  opacity: 0;
  pointer-events: none;
}

#previewModal:not(.hidden) {
  opacity: 1;
}

.preview-container {
  background: rgba(28, 28, 28, 0.95);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: #333;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.preview-buttons {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  left: 0.75rem;
}

.preview-title {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 auto;
  padding: 0 3rem;
}

.preview-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  padding: 2rem;
  min-height: 400px;
}

.preview-image-container {
  position: relative;
  max-width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#previewImage {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.preview-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.preview-nav.prev {
  left: 1rem;
}

.preview-nav.next {
  right: 1rem;
}

.preview-info {
  padding: 1rem;
  background: #333;
  color: white;
}

.preview-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Light Mode Preview */
body.light-mode .preview-container {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .preview-header {
  background: #e0e0e0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .preview-content {
  background: #f5f5f5;
}

body.light-mode .preview-info {
  background: #e0e0e0;
  color: #333;
}

body.light-mode .preview-title {
  color: #333;
}

/* Hover effect untuk sertifikat */
.file-item.certificate {
  cursor: zoom-in;
}

.file-item.certificate:hover img {
  transform: scale(1.05);
}

.file-item.project {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.file-item.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.file-item.project:hover img {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.file-item.project .file-name {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

.item-details {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
}

.file-item.project:hover .item-details {
  transform: translateY(0);
  opacity: 1;
}

/* Light Mode untuk project */
body.light-mode .file-item.project {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .file-item.project:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .item-details {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

/* Video Content Wrapper */
.video-content-wrapper {
  display: flex;
  width: 100%;
  position: relative;
}

.video-container {
  flex-grow: 1;
  position: relative;
  width: 100%;
  height: 550px;
}

.playlist-panel {
  width: 300px;
  background: #1a1a1a;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.playlist-panel.hidden {
  width: 0;
  overflow: hidden;
}

.playlist-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.playlist-items {
  height: calc(550px - 3.5rem);
  overflow-y: auto;
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.playlist-items::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.playlist-item {
  display: flex;
  padding: 0.75rem;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
  background: rgba(255, 255, 255, 0.15);
}

.playlist-item img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-info h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2;
  height: 2.4em;
}

/* Light Mode */
body.light-mode .playlist-panel {
  background: #f5f5f5;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .playlist-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .playlist-header h3 {
  color: #333;
}

body.light-mode .playlist-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .playlist-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .playlist-item.active {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .playlist-item-info h4 {
  color: #333;
}

body.light-mode .playlist-item-info p {
  color: rgba(0, 0, 0, 0.6);
}

/* Light Mode */
body.light-mode .video-header {
  background: #e0e0e0;
}

body.light-mode .playlist-panel {
  background: #f5f5f5;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.file-item.document {
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.file-item.document .file-icon {
  font-size: 3rem;
  color: #ff4444;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.file-item.document .file-name {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: white;
  margin-top: 0.5rem;
}

body.light-mode .file-item.document .file-icon {
  color: #ff4444;
}

body.light-mode .file-item.document .file-name {
  color: #333;
}

@media (max-width: 580px) {
  .preview-buttons {
    position: relative;
    left: 0;
    margin-right: 1rem;
  }

  .preview-title {
    margin: 0;
    padding: 0;
  }
}
