/* ========================================
   macOS Desktop Theme - Reza Mubarok
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode Colors */
  --bg-primary: #f5f5f7;
  --bg-secondary: rgba(255, 255, 255, 0.72);
  --bg-dock: rgba(255, 255, 255, 0.65);
  --bg-folder: rgba(255, 255, 255, 0.85);
  --bg-menubar: rgba(255, 255, 255, 0.8);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.15);
  --accent-color: #007aff;
  --wallpaper: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

[data-theme="dark"] {
  --bg-primary: #1c1c1e;
  --bg-secondary: rgba(44, 44, 46, 0.72);
  --bg-dock: rgba(30, 30, 32, 0.75);
  --bg-folder: rgba(44, 44, 46, 0.9);
  --bg-menubar: rgba(30, 30, 32, 0.85);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --accent-color: #0a84ff;
  --wallpaper: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* Time-based Dynamic Wallpapers */
[data-time="dawn"] {
  --wallpaper: linear-gradient(135deg, #2c3e50 0%, #3498db 30%, #e74c3c 60%, #f39c12 100%);
}

[data-time="morning"] {
  --wallpaper: linear-gradient(135deg, #74b9ff 0%, #81ecec 30%, #ffeaa7 70%, #fab1a0 100%);
}

[data-time="afternoon"] {
  --wallpaper: linear-gradient(135deg, #0984e3 0%, #00cec9 40%, #74b9ff 100%);
}

[data-time="sunset"] {
  --wallpaper: linear-gradient(135deg, #fc4a1a 0%, #f7b733 30%, #f953c6 70%, #b91d73 100%);
}

[data-time="evening"] {
  --wallpaper: linear-gradient(135deg, #2c3e50 0%, #4a69bd 40%, #6c5ce7 70%, #a55eea 100%);
}

[data-time="night"] {
  --wallpaper: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
}

html,
body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--wallpaper);
  color: var(--text-primary);
  overflow: hidden;
  user-select: none;
}

/* ========================================
   Menu Bar
   ======================================== */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--bg-menubar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  font-size: 13px;
  font-weight: 500;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menubar .logo {
  font-size: 16px;
}

.menubar-item {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.menubar-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .menubar-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle {
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ========================================
   Desktop Area
   ======================================== */
.desktop {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 90px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.desktop-greeting {
  text-align: center;
  margin-bottom: 40px;
}

.desktop-greeting h1 {
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.desktop-greeting .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.desktop-greeting .dua {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-top: 16px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/* ========================================
   Desktop Icons Grid
   ======================================== */
.desktop-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 800px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.desktop-icon:active {
  transform: scale(0.95);
}

.desktop-icon .icon {
  font-size: 52px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.desktop-icon:hover .icon {
  transform: translateY(-4px);
}

.desktop-icon .label {
  font-size: 12px;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-weight: 500;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   Folder Window
   ======================================== */
.folder-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--bg-folder);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 12px;
  box-shadow: 0 20px 60px var(--shadow-color), 0 0 1px var(--border-color);
  min-width: 500px;
  max-width: 90vw;
  max-height: 70vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 500;
  overflow: hidden;
}

.folder-window.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.folder-controls {
  display: flex;
  gap: 8px;
}

.folder-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.folder-control:hover {
  opacity: 0.8;
}

.folder-control.close {
  background: #ff5f57;
}

.folder-control.minimize {
  background: #febc2e;
}

.folder-control.maximize {
  background: #28c840;
}

.folder-title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.folder-content {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.folder-item:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.folder-item .icon {
  font-size: 42px;
}

.folder-item .label {
  font-size: 12px;
  text-align: center;
  font-weight: 500;
}

/* ========================================
   Dock
   ======================================== */
.dock-container {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
}

.dock {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-dock);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px var(--shadow-color);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dock-item .icon {
  font-size: 48px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.dock-item:hover .icon {
  transform: translateY(-10px) scale(1.2);
}

.dock-item .tooltip {
  position: absolute;
  bottom: 70px;
  background: var(--bg-folder);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
  color: var(--text-primary);
}

.dock-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 75px;
}

.dock-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  margin: 0 4px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ========================================
   Search Bar (Spotlight Style)
   ======================================== */
.search-container {
  width: 100%;
  max-width: 500px;
  margin-bottom: 30px;
  position: relative;
  z-index: 9000;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-dock);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 8px 30px var(--shadow-color);
  border-color: var(--accent-color);
}

.search-icon {
  font-size: 18px;
  opacity: 0.7;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-clear {
  font-size: 14px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 4px;
}

.search-clear:hover {
  opacity: 1;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: rgba(30, 30, 32, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
  isolation: isolate;
}

[data-theme="light"] .search-results {
  background: rgba(255, 255, 255, 0.98);
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}

.search-result-item:hover {
  background: var(--accent-color);
  color: white;
}

.search-result-item .icon {
  font-size: 28px;
}

.search-result-item .info {
  flex: 1;
}

.search-result-item .title {
  font-size: 14px;
  font-weight: 500;
}

.search-result-item .category {
  font-size: 11px;
  opacity: 0.7;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .desktop-greeting h1 {
    font-size: 32px;
  }

  .desktop-greeting .dua {
    font-size: 18px;
  }

  .folder-window {
    min-width: 90vw;
  }

  .dock-item .icon {
    font-size: 36px;
  }

  .menubar {
    font-size: 11px;
  }
}

/* ========================================
   iOS Mobile Styles
   ======================================== */
@media (max-width: 480px) {

  /* Prevent horizontal scroll */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  /* Hide macOS menu bar on mobile */
  .menubar {
    display: none;
  }

  /* iOS Status Bar */
  .ios-status-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 3000;
    font-size: 14px;
    font-weight: 600;
    color: white;
    pointer-events: none;
  }

  .ios-status-bar .time {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
  }

  .ios-status-bar .notch {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
  }

  .ios-status-bar .left,
  .ios-status-bar .right {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
  }

  /* iOS Desktop/Home Screen */
  .desktop {
    top: 44px;
    bottom: 90px;
    padding: 10px 20px;
    justify-content: flex-start;
    padding-top: 15px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .desktop-greeting {
    margin-bottom: 20px;
    width: 100%;
  }

  .desktop-greeting h1 {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .desktop-greeting .subtitle {
    font-size: 12px;
    opacity: 0.8;
  }

  .desktop-greeting .dua {
    font-size: 13px;
    margin-top: 12px;
    letter-spacing: 0.5px;
    animation: floatMobile 6s ease-in-out infinite;
  }

  /* Smaller float animation for mobile */
  @keyframes floatMobile {

    0%,
    100% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-5px);
    }
  }

  /* iOS Search Bar */
  .search-container {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
  }

  .search-box {
    padding: 10px 14px;
    border-radius: 10px;
  }

  .search-icon {
    font-size: 14px;
  }

  .search-input {
    font-size: 14px;
  }

  .search-results {
    max-height: 250px;
    border-radius: 10px;
  }

  .search-result-item {
    padding: 10px 14px;
  }

  .search-result-item .icon {
    font-size: 24px;
  }

  .search-result-item .title {
    font-size: 13px;
  }

  .search-result-item .category {
    font-size: 10px;
  }

  /* iOS App Grid - Compact */
  .desktop-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 8px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .desktop-icon {
    padding: 4px;
    min-width: unset;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .desktop-icon:hover {
    background: transparent;
    transform: none;
  }

  .desktop-icon:active {
    transform: scale(0.92);
    opacity: 0.8;
  }

  .desktop-icon .icon {
    font-size: 44px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    filter: none;
  }

  .desktop-icon:hover .icon {
    transform: none;
  }

  .desktop-icon .label {
    font-size: 10px;
    max-width: 60px;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
  }

  /* iOS Dock */
  .dock-container {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    padding: 8px 16px;
    padding-bottom: 20px;
  }

  .dock {
    width: 100%;
    max-width: 100%;
    justify-content: space-evenly;
    padding: 10px 16px 24px;
    border-radius: 24px;
    gap: 0;
    position: relative;
  }

  .dock-item {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .dock-item .icon {
    font-size: 40px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    filter: none;
  }

  .dock-item:hover .icon {
    transform: none;
  }

  .dock-item:active .icon {
    transform: scale(0.92);
    opacity: 0.8;
  }

  .dock-item .tooltip {
    display: none;
  }

  .dock-divider {
    display: none;
  }

  /* iOS Home Indicator */
  .dock::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
  }

  /* iOS Login Screen */
  .login-screen {
    padding: 0;
    justify-content: center;
    padding-top: 60px;
  }

  .login-box {
    gap: 10px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
  }

  .login-avatar {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }

  .login-name {
    font-size: 16px;
  }

  .login-input-wrapper {
    width: 220px;
    position: relative;
    z-index: 20;
  }

  .login-input {
    padding: 12px 45px 12px 16px;
    font-size: 16px;
    border-radius: 10px;
    position: relative;
    z-index: 20;
    -webkit-appearance: none;
    appearance: none;
  }

  .password-toggle {
    right: 8px;
    font-size: 18px;
    width: 30px;
    height: 30px;
    z-index: 30;
  }

  .login-btn {
    margin-top: 12px;
    padding: 12px 35px;
    font-size: 15px;
    border-radius: 20px;
  }

  .login-time {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    bottom: unset;
    font-size: 60px;
    font-weight: 200;
    letter-spacing: -2px;
    pointer-events: none;
    z-index: 1;
  }

  .login-date {
    position: fixed;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    bottom: unset;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
  }

  .login-hint {
    font-size: 11px;
    margin-top: 15px;
    opacity: 0.6;
  }

  /* iOS Swipe Up Indicator on Login */
  .login-screen::after {
    content: '';
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    pointer-events: none;
  }

  /* iOS Folder Window */
  .folder-window {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 92vw;
    min-width: unset;
    max-width: 92vw;
    max-height: 65vh;
    border-radius: 16px;
  }

  .folder-window.active {
    transform: translate(-50%, -50%) scale(1);
  }

  .folder-header {
    padding: 12px 14px;
    border-radius: 16px 16px 0 0;
  }

  .folder-controls {
    gap: 5px;
  }

  .folder-control {
    width: 9px;
    height: 9px;
  }

  .folder-title {
    font-size: 14px;
  }

  .folder-content {
    padding: 12px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .folder-item {
    padding: 8px 4px;
    border-radius: 12px;
  }

  .folder-item:hover {
    background: transparent;
  }

  .folder-item:active {
    opacity: 0.7;
  }

  .folder-item .icon {
    font-size: 36px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .folder-item .label {
    font-size: 10px;
    margin-top: 4px;
  }

  /* iOS Modal */
  .modal {
    margin: 16px;
    padding: 20px 16px;
    border-radius: 16px;
    max-width: 88vw;
  }

  .modal h2 {
    font-size: 18px;
  }

  .modal p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .modal-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
  }

  /* iOS Notch safe area */
  @supports (padding-top: env(safe-area-inset-top)) {
    .ios-status-bar {
      padding-top: env(safe-area-inset-top);
      height: calc(44px + env(safe-area-inset-top));
    }

    .login-time {
      top: calc(50px + env(safe-area-inset-top));
    }

    .login-date {
      top: calc(130px + env(safe-area-inset-top));
    }

    .desktop {
      top: calc(44px + env(safe-area-inset-top));
    }

    .dock-container {
      padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .dock {
      padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .login-screen::after,
    .dock::after {
      bottom: calc(6px + env(safe-area-inset-bottom));
    }
  }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* ========================================
   Login Screen
   ======================================== */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wallpaper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.login-name {
  font-size: 28px;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-input-wrapper {
  position: relative;
  width: 260px;
}

.login-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
  cursor: text;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-input:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.login-input.error {
  animation: shake 0.5s ease;
  background: rgba(255, 87, 87, 0.3);
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  opacity: 1;
  z-index: 30;
  padding: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover,
.password-toggle:active {
  background: rgba(255, 255, 255, 0.3);
}

.login-btn {
  margin-top: 15px;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.login-btn:active {
  transform: scale(0.98);
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-10px);
  }

  40%,
  80% {
    transform: translateX(10px);
  }
}

.login-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
}

.login-time {
  position: absolute;
  bottom: 60px;
  font-size: 72px;
  font-weight: 200;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.login-date {
  position: absolute;
  bottom: 30px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Dropdown Menus
   ======================================== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-folder);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 10px 40px var(--shadow-color);
  border: 1px solid var(--border-color);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1100;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-primary);
}

.dropdown-item:hover {
  background: var(--accent-color);
  color: white;
}

.dropdown-item .emoji {
  font-size: 16px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* About Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-folder);
  backdrop-filter: blur(30px);
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px var(--shadow-color);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-btn {
  padding: 10px 30px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 122, 255, 0.4);
}