body {
  background: #f8f9fa;
  color: #222;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}
/* Navbar styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #222;
  color: #fff;
  padding: 0.8rem 2rem;
  border-bottom: 2px solid #007bff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}
.navbar-brand {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
  margin-right: 2rem;
  transition: color 0.2s;
}
.navbar-brand:hover {
  color: #007bff;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: #007bff;
  color: #fff;
}
.btn, .btn.btn-outline {
  margin-left: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  border: none;
  background: #007bff;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.btn.btn-outline:hover {
  background: #fff;
  color: #007bff;
}
#darkModeToggle {
  font-size: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  margin-left: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}
#darkModeToggle:hover {
  color: #007bff;
}
.navbar-logo {
  height: 32px;
  width: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-right: 8px;
  vertical-align: middle;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}
.navbar-toggle .bar {
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 700px) {
  .navbar .container {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  .navbar-toggle {
    display: flex;
  }
  #navbarMenu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #222;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
    border-bottom: 2px solid #007bff;
  }
  #navbarMenu.open {
    display: flex;
  }
  .nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
  }
  .navbar-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
  .btn, .btn.btn-outline {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
}
.footer {
  background: #222;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  bottom: 0;
}
[data-theme="dark"] {
  background: #181a1b;
  color: #eee;
}
[data-theme="dark"] .navbar, [data-theme="dark"] .footer {
  background: #111;
  color: #eee;
}
[data-theme="dark"] .navbar, [data-theme="dark"] .navbar-brand {
  background: #111;
  color: #eee;
}
[data-theme="dark"] .nav-link {
  color: #eee;
}
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  background: #007bff;
  color: #fff;
}
[data-theme="dark"] .btn.btn-outline {
  color: #eee;
  border-color: #eee;
}
[data-theme="dark"] .btn.btn-outline:hover {
  background: #eee;
  color: #111;
}
/* Login form styles */
.login-container {
  max-width: 400px;
  margin: 4rem auto;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
[data-theme="dark"] .login-container {
  background: #23272b;
  color: #eee;
  box-shadow: 0 2px 16px rgba(0,0,0,0.32);
}
.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-container .form-group {
  margin-bottom: 1.2rem;
}
.login-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border 0.2s;
}
[data-theme="dark"] .login-container input[type="text"],
[data-theme="dark"] .login-container input[type="password"] {
  background: #181a1b;
  border: 1px solid #444;
  color: #eee;
}
.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
  border: 1.5px solid #007bff;
  outline: none;
}
.login-container .btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.1rem;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.login-container .btn:hover {
  background: #0056b3;
}
.login-container .alert {
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: #ffdddd;
  color: #a33;
  border: 1px solid #e99;
  text-align: center;
}
[data-theme="dark"] .login-container .alert {
  background: #3a2323;
  color: #ffb3b3;
  border: 1px solid #a33;
}
/* Dashboard styles */
.dashboard-container {
  max-width: 1100px;
  margin: 3rem auto 2rem auto;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
[data-theme="dark"] .dashboard-container {
  background: #23272b;
  color: #eee;
  box-shadow: 0 2px 24px rgba(0,0,0,0.32);
}
.dashboard-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.dashboard-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}
[data-theme="dark"] .dashboard-subtitle {
  color: #bbb;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.dashboard-card {
  background: #f7f9fb;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dashboard-card:hover {
  box-shadow: 0 4px 24px rgba(0,123,255,0.13);
  transform: translateY(-4px) scale(1.03);
}
[data-theme="dark"] .dashboard-card {
  background: #181a1b;
  color: #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,0.22);
}
.dashboard-icon {
  font-size: 2.7rem;
  margin-bottom: 1.1rem;
  color: #007bff;
  background: #eaf2ff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 6px rgba(0,123,255,0.07);
}
[data-theme="dark"] .dashboard-icon {
  background: #23272b;
  color: #66aaff;
  box-shadow: 0 1px 6px rgba(0,123,255,0.18);
}
.dashboard-card h3 {
  margin: 0.7rem 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.dashboard-card p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
[data-theme="dark"] .dashboard-card p {
  color: #bbb;
}
.dashboard-card .btn {
  margin: 0;
  width: 100%;
  font-size: 1.05rem;
  padding: 0.7rem 0;
}
@media (max-width: 700px) {
  .dashboard-container {
    padding: 1rem 0.2rem;
  }
  .dashboard-grid {
    gap: 1.1rem;
  }
  .dashboard-card {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
}
/* File Manager styles */
.file-manager-container {
  max-width: 800px;
  margin: 3rem auto 2rem auto;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
[data-theme="dark"] .file-manager-container {
  background: #23272b;
  color: #eee;
  box-shadow: 0 2px 24px rgba(0,0,0,0.32);
}
.fm-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.fm-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.08rem;
}
[data-theme="dark"] .fm-subtitle {
  color: #bbb;
}
.fm-upload-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.fm-upload-label {
  display: flex;
  align-items: center;
  background: #eaf2ff;
  color: #007bff;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.2s, color 0.2s;
  border: 1.5px solid #b3d4fc;
}
.fm-upload-label:hover {
  background: #d0e7ff;
  color: #0056b3;
}
.fm-upload-icon {
  font-size: 1.3rem;
  margin-right: 0.6rem;
}
[data-theme="dark"] .fm-upload-label {
  background: #181a1b;
  color: #66aaff;
  border: 1.5px solid #23272b;
}
[data-theme="dark"] .fm-upload-label:hover {
  background: #23272b;
  color: #99cfff;
}
.fm-files-section {
  margin-top: 2.5rem;
}
.fm-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #007bff;
  text-align: left;
}
[data-theme="dark"] .fm-section-title {
  color: #66aaff;
}
.fm-files-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.fm-file-card {
  display: flex;
  align-items: center;
  background: #f7f9fb;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 1.1rem 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  gap: 1.2rem;
}
.fm-file-card:hover {
  box-shadow: 0 4px 24px rgba(0,123,255,0.13);
  transform: translateY(-2px) scale(1.01);
}
[data-theme="dark"] .fm-file-card {
  background: #181a1b;
  color: #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,0.22);
}
.fm-file-icon {
  font-size: 2.1rem;
  color: #007bff;
  background: #eaf2ff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0,123,255,0.07);
}
[data-theme="dark"] .fm-file-icon {
  background: #23272b;
  color: #66aaff;
  box-shadow: 0 1px 6px rgba(0,123,255,0.18);
}
.fm-file-info {
  flex: 1;
  min-width: 0;
}
.fm-file-name {
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
  word-break: break-all;
}
.fm-file-date {
  color: #888;
  font-size: 0.97rem;
}
[data-theme="dark"] .fm-file-date {
  color: #bbb;
}
.fm-file-actions {
  display: flex;
  gap: 0.7rem;
}
.fm-empty {
  text-align: center;
  color: #aaa;
  font-size: 1.1rem;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .file-manager-container {
    padding: 1rem 0.2rem;
  }
  .fm-files-list {
    gap: 0.7rem;
  }
  .fm-file-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0.5rem;
  }
  .fm-file-actions {
    width: 100%;
    justify-content: flex-end;
  }
} 
/* Enhanced File Manager styles */
.fm-upload-card {
  background: #f7f9fb;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
[data-theme="dark"] .fm-upload-card {
  background: #181a1b;
  color: #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,0.22);
}
.fm-divider {
  border: none;
  border-top: 1.5px solid #e0e6ed;
  margin: 2.5rem 0 2rem 0;
}
[data-theme="dark"] .fm-divider {
  border-top: 1.5px solid #333;
}
.fm-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.fm-file-tile {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 1.1rem 1.2rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-width: 0;
}
.fm-file-tile:hover {
  box-shadow: 0 4px 24px rgba(0,123,255,0.13);
  transform: translateY(-2px) scale(1.01);
}
[data-theme="dark"] .fm-file-tile {
  background: #23272b;
  color: #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,0.22);
}
.fm-file-tile-icon {
  font-size: 2.1rem;
  color: #007bff;
  background: #eaf2ff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0,123,255,0.07);
  margin-bottom: 0.7rem;
}
[data-theme="dark"] .fm-file-tile-icon {
  background: #181a1b;
  color: #66aaff;
  box-shadow: 0 1px 6px rgba(0,123,255,0.18);
}
.fm-file-tile-info {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.fm-file-tile-name {
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
  word-break: break-all;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-file-tile-meta {
  color: #888;
  font-size: 0.97rem;
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .fm-file-tile-meta {
  color: #bbb;
}
.fm-file-tile-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.fm-file-selected {
  min-width: 120px;
  color: #007bff;
  font-size: 1.01rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  word-break: break-all;
}
[data-theme="dark"] .fm-file-selected {
  color: #66aaff;
}
.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.98rem;
}
@media (max-width: 700px) {
  .fm-upload-card {
    padding: 1rem 0.5rem 0.7rem 0.5rem;
  }
  .fm-files-grid {
    gap: 0.7rem;
    grid-template-columns: 1fr;
  }
  .fm-file-tile {
    padding: 0.8rem 0.5rem 0.7rem 0.5rem;
  }
} 
/* Drag-and-drop upload zone styles */
.fm-upload-card {
  background: #f7f9fb;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2.5px dashed #b3d4fc;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.fm-upload-card.dragover {
  border-color: #007bff;
  background: #eaf2ff;
}
[data-theme="dark"] .fm-upload-card {
  background: #181a1b;
  color: #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,0.22);
  border: 2.5px dashed #23272b;
}
[data-theme="dark"] .fm-upload-card.dragover {
  border-color: #66aaff;
  background: #23272b;
}
/* Enhanced upload area visuals */
.fm-upload-droptext {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.18rem;
  color: #007bff;
  font-weight: 500;
  margin-bottom: 0.7rem;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 120px;
  transition: color 0.2s;
}
.fm-upload-icon {
  font-size: 3.2rem;
  margin-bottom: 0.2rem;
  color: #007bff;
  transition: color 0.2s, transform 0.2s;
}
.fm-upload-card.dragover .fm-upload-icon {
  color: #0056b3;
  transform: scale(1.15) rotate(-8deg);
}
.fm-upload-label-text {
  font-size: 1.13rem;
  color: #222;
  font-weight: 500;
  margin-bottom: 0.2rem;
  display: block;
}
[data-theme="dark"] .fm-upload-label-text {
  color: #eee;
}
.btn-upload {
  background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1.13rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,123,255,0.10);
  letter-spacing: 0.5px;
}
.btn-upload:hover, .btn-upload:focus {
  background: linear-gradient(90deg, #0056b3 60%, #007bff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,123,255,0.13);
}
[data-theme="dark"] .btn-upload {
  background: linear-gradient(90deg, #23272b 60%, #181a1b 100%);
  color: #66aaff;
  border: 1.5px solid #66aaff;
}
[data-theme="dark"] .btn-upload:hover, [data-theme="dark"] .btn-upload:focus {
  background: linear-gradient(90deg, #181a1b 60%, #23272b 100%);
  color: #99cfff;
}
.fm-upload-card.dragover .fm-upload-label-text {
  color: #0056b3;
}
[data-theme="dark"] .fm-upload-card.dragover .fm-upload-label-text {
  color: #99cfff;
} 
/* Toast feedback */
.fm-toast {
  position: fixed;
  top: 2.2rem;
  right: 2.2rem;
  z-index: 9999;
  background: #fff;
  color: #222;
  padding: 1rem 1.7rem;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,123,255,0.13);
  font-size: 1.08rem;
  font-weight: 600;
  opacity: 0.97;
  border-left: 5px solid #007bff;
  transition: opacity 0.2s, top 0.2s;
  pointer-events: none;
}
.fm-toast-success { border-left-color: #28a745; }
.fm-toast-error { border-left-color: #dc3545; background: #fff0f0; color: #a33; }
[data-theme="dark"] .fm-toast {
  background: #23272b;
  color: #eee;
  box-shadow: 0 4px 24px rgba(0,123,255,0.23);
}
[data-theme="dark"] .fm-toast-error {
  background: #3a2323;
  color: #ffb3b3;
}
/* File type badge */
.fm-file-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: #007bff;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.18em 0.7em;
  border-radius: 8px;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(0,123,255,0.08);
  pointer-events: none;
  text-transform: uppercase;
}
[data-theme="dark"] .fm-file-badge {
  background: #23272b;
  color: #66aaff;
  border: 1px solid #66aaff;
}
/* File tile hover animation */
.fm-file-tile {
  transition: box-shadow 0.2s, transform 0.2s;
}
.fm-file-tile:hover, .fm-file-tile:focus {
  box-shadow: 0 8px 32px rgba(0,123,255,0.18);
  transform: translateY(-4px) scale(1.03);
  outline: 2px solid #007bff;
}
[data-theme="dark"] .fm-file-tile:focus {
  outline: 2px solid #66aaff;
}
/* Image preview modal */
.fm-preview-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.2s;
}
.fm-preview-modal-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
}
.fm-preview-modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
  max-width: 90vw;
  max-height: 90vh;
}
[data-theme="dark"] .fm-preview-modal-content {
  background: #23272b;
  color: #eee;
}
.fm-preview-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #007bff;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}
.fm-preview-modal-close:hover {
  color: #dc3545;
}
.fm-preview-modal img {
  max-width: 420px;
  max-height: 55vh;
  border-radius: 8px;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 16px rgba(0,123,255,0.08);
}
.fm-preview-modal #fm-preview-caption {
  font-size: 1.08rem;
  color: #555;
  text-align: center;
  margin-top: 0.2rem;
}
[data-theme="dark"] .fm-preview-modal #fm-preview-caption {
  color: #bbb;
}
@media (max-width: 700px) {
  .fm-preview-modal-content {
    padding: 1rem 0.5rem 0.7rem 0.5rem;
    min-width: 0;
    max-width: 98vw;
  }
  .fm-preview-modal img {
    max-width: 90vw;
    max-height: 40vh;
  }
  .fm-toast {
    right: 0.7rem;
    top: 0.7rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.98rem;
  }
} 
/* Uniform image thumbnails in file manager */
.fm-file-img-thumb {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,123,255,0.07);
  margin-bottom: 0.7rem;
  border: 2px solid #e0e6ed;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fm-file-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fm-file-tile:hover .fm-file-img-thumb, .fm-file-tile:focus .fm-file-img-thumb {
  border-color: #007bff;
  box-shadow: 0 4px 16px rgba(0,123,255,0.13);
}
[data-theme="dark"] .fm-file-img-thumb {
  background: #23272b;
  border: 2px solid #333;
}
[data-theme="dark"] .fm-file-tile:hover .fm-file-img-thumb, [data-theme="dark"] .fm-file-tile:focus .fm-file-img-thumb {
  border-color: #66aaff;
}
/* Align all file tile icons and info for a neat grid */
.fm-file-tile {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-content: flex-start;
}
.fm-file-tile-info {
  width: 100%;
  text-align: center;
}
.fm-file-tile-name {
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
}
.fm-file-tile-meta {
  justify-content: center;
}
@media (max-width: 700px) {
  .fm-file-img-thumb {
    width: 48px;
    height: 48px;
  }
  .fm-file-tile-name {
    max-width: 80vw;
  }
} 
/* File manager action buttons */
.fm-file-tile-actions .btn {
  margin-right: 0.3rem;
  margin-bottom: 0.1rem;
  min-width: 70px;
  text-align: center;
}
.fm-file-tile-actions .btn:last-child {
  margin-right: 0;
}
.btn-danger {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
}
.btn-danger:hover, .btn-danger:focus {
  background: #b52a37;
  color: #fff;
}
.btn-outline.btn-sm[title="View"], .btn-outline.btn-sm[aria-label^="View"] {
  border: 1.5px solid #007bff;
  color: #007bff;
  background: #fff;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-outline.btn-sm[title="View"]:hover, .btn-outline.btn-sm[aria-label^="View"]:hover {
  background: #007bff;
  color: #fff;
}
[data-theme="dark"] .btn-outline.btn-sm[title="View"], [data-theme="dark"] .btn-outline.btn-sm[aria-label^="View"] {
  border: 1.5px solid #66aaff;
  color: #66aaff;
  background: #23272b;
}
[data-theme="dark"] .btn-outline.btn-sm[title="View"]:hover, [data-theme="dark"] .btn-outline.btn-sm[aria-label^="View"]:hover {
  background: #66aaff;
  color: #23272b;
}
[data-theme="dark"] .btn-danger {
  background: #b52a37;
  color: #fff;
}
[data-theme="dark"] .btn-danger:hover, [data-theme="dark"] .btn-danger:focus {
  background: #dc3545;
  color: #fff;
} 
/* Arrange file action buttons horizontally and center below info */
.fm-file-tile-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  width: 100%;
}
.fm-file-tile-actions .btn {
  min-width: 70px;
  text-align: center;
  margin-right: 0;
}
@media (max-width: 700px) {
  .fm-file-tile-actions {
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
  }
  .fm-file-tile-actions .btn {
    min-width: 90px;
    width: 100%;
  }
} 
/* --- Digital Glassmorphism & Neon Accents for File Manager --- */
/* Remove digital-neon and digital-glass styles */
.digital-glass, .digital-neon {
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  border: none !important;
  color: inherit !important;
  text-shadow: none !important;
}
/* Restore normal backgrounds for file manager */
.file-manager-container, .fm-upload-card, .fm-empty, .fm-file-tile, .fm-preview-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e5e5;
}
.fm-upload-card, .fm-empty {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.fm-file-tile {
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #e5e5e5;
  background: #fff;
}
.fm-file-tile:hover, .fm-file-tile:focus {
  box-shadow: 0 2px 12px rgba(0,123,255,0.10);
  border: 1.5px solid #007bff;
}
.fm-file-badge {
  background: #f0f4fa;
  color: #007bff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.1rem 0.7rem;
  margin-bottom: 0.5rem;
  box-shadow: none;
}
.btn, .btn-outline, .btn-danger {
  border: 1.5px solid #007bff !important;
  color: #007bff !important;
  background: #f8f9fa !important;
  text-shadow: none;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn:hover, .btn-outline:hover, .btn-danger:hover {
  background: #007bff !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,123,255,0.10);
}
.fm-preview-modal .fm-preview-modal-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
}
.fm-preview-modal-close {
  color: #007bff;
  text-shadow: none;
  border: none;
  background: transparent;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.18s;
}
.fm-preview-modal-close:hover {
  color: #222;
}

/* Classic File Manager Styles */
.classic-file-manager {
  background: #f5f5f5;
  min-height: calc(100vh - 120px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[data-theme="dark"] .classic-file-manager {
  background: #1a1a1a;
  color: #e0e0e0;
}

/* Header */
.fm-header {
  background: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-theme="dark"] .fm-header {
  background: #2d2d2d;
  border-bottom-color: #404040;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fm-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fm-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

[data-theme="dark"] .fm-title {
  color: #e0e0e0;
}

.fm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

[data-theme="dark"] .fm-breadcrumb {
  color: #aaa;
}

.breadcrumb-item {
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: #007bff;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

[data-theme="dark"] .breadcrumb-item.active {
  color: #e0e0e0;
}

.breadcrumb-separator {
  color: #ccc;
}

.fm-header-actions {
  display: flex;
  gap: 1rem;
}

/* Main Content Layout */
.fm-main-content {
  display: flex;
  height: calc(100vh - 200px);
}

/* Sidebar */
.fm-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 1.5rem;
  overflow-y: auto;
}

[data-theme="dark"] .fm-sidebar {
  background: #2d2d2d;
  border-right-color: #404040;
}

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

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

[data-theme="dark"] .sidebar-title {
  color: #e0e0e0;
  border-bottom-color: #404040;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 0.25rem;
}

.sidebar-item:hover {
  background: #f0f0f0;
}

[data-theme="dark"] .sidebar-item:hover {
  background: #404040;
}

.sidebar-item.active {
  background: #007bff;
  color: white;
}

.sidebar-icon {
  font-size: 1.2rem;
}

.sidebar-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Storage Info */
.storage-info {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

[data-theme="dark"] .storage-info {
  background: #404040;
  border-color: #555;
}

.storage-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .storage-bar {
  background: #555;
}

.storage-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.storage-text {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

[data-theme="dark"] .storage-text {
  color: #aaa;
}

/* Main Content Area */
.fm-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* Toolbar */
.fm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[data-theme="dark"] .fm-toolbar {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-toggle {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="dark"] .view-toggle {
  border-color: #404040;
}

.view-btn {
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

[data-theme="dark"] .view-btn {
  background: #2d2d2d;
  color: #e0e0e0;
}

.view-btn:hover {
  background: #f0f0f0;
}

[data-theme="dark"] .view-btn:hover {
  background: #404040;
}

.view-btn.active {
  background: #007bff;
  color: white;
}

.sort-select {
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.9rem;
}

[data-theme="dark"] .sort-select {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

.toolbar-right {
  display: flex;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.9rem;
  width: 250px;
}

[data-theme="dark"] .search-input {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  color: #666;
  font-size: 0.9rem;
}

[data-theme="dark"] .search-icon {
  color: #aaa;
}

/* Upload Area */
.fm-upload-area {
  margin-bottom: 2rem;
}

.upload-zone {
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

[data-theme="dark"] .upload-zone {
  border-color: #404040;
  background: #1a1a1a;
}

.upload-zone:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

[data-theme="dark"] .upload-zone:hover {
  border-color: #007bff;
  background: #1a1a2e;
}

.upload-zone.dragover {
  border-color: #007bff;
  background: #e6f3ff;
}

[data-theme="dark"] .upload-zone.dragover {
  background: #1a1a2e;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.upload-text {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .upload-text {
  color: #aaa;
}

.btn-link {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.btn-link:hover {
  color: #0056b3;
}

.upload-hint {
  font-size: 0.9rem;
  color: #999;
}

[data-theme="dark"] .upload-hint {
  color: #666;
}

/* Files Grid */
.fm-files-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[data-theme="dark"] .fm-files-container {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

.files-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.file-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

[data-theme="dark"] .file-item {
  background: #2d2d2d;
  border-color: #404040;
}

.file-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 8px rgba(0,123,255,0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .file-item:hover {
  box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.file-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.file-preview {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

[data-theme="dark"] .file-preview {
  border-color: #404040;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-type-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.file-info {
  text-align: center;
  margin-bottom: 1rem;
}

.file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  word-break: break-word;
  line-height: 1.3;
}

[data-theme="dark"] .file-name {
  color: #e0e0e0;
}

.file-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .file-meta {
  color: #aaa;
}

.file-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.file-item:hover .file-actions {
  opacity: 1;
}

.action-btn {
  padding: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

[data-theme="dark"] .action-btn {
  background: #404040;
  border-color: #555;
  color: #e0e0e0;
}

.action-btn:hover {
  background: #e9ecef;
  border-color: #007bff;
}

[data-theme="dark"] .action-btn:hover {
  background: #555;
  border-color: #007bff;
}

.action-btn.danger:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

[data-theme="dark"] .empty-state {
  color: #aaa;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

[data-theme="dark"] .empty-title {
  color: #e0e0e0;
}

.empty-text {
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Preview Modal */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  background: #ffffff;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1001;
}

[data-theme="dark"] .modal-content {
  background: #2d2d2d;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: #404040;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

[data-theme="dark"] .modal-title {
  color: #e0e0e0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

[data-theme="dark"] .modal-close {
  color: #aaa;
}

[data-theme="dark"] .modal-close:hover {
  background: #404040;
  color: #e0e0e0;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e0e0e0;
}

[data-theme="dark"] .modal-footer {
  border-top-color: #404040;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
  min-width: 300px;
}

[data-theme="dark"] .toast {
  background: #2d2d2d;
  border-color: #555;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid #28a745;
}

.toast-error {
  border-left: 4px solid #dc3545;
}

.toast-warning {
  border-left: 4px solid #ffc107;
}

.toast-info {
  border-left: 4px solid #17a2b8;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.toast-message {
  flex: 1;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
}

[data-theme="dark"] .toast-message {
  color: #e0e0e0;
}

.toast-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

[data-theme="dark"] .toast-close {
  color: #aaa;
}

.toast-close:hover {
  background: #f0f0f0;
  color: #333;
}

[data-theme="dark"] .toast-close:hover {
  background: #404040;
  color: #e0e0e0;
}

/* Classic Button Styles */
.btn-classic {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-classic:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-outline {
  background: transparent;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: #007bff;
  color: white;
}

[data-theme="dark"] .btn-outline {
  color: #007bff;
  border-color: #007bff;
}

[data-theme="dark"] .btn-outline:hover {
  background: #007bff;
  color: white;
}

/* Sidebar Link Styles */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.sidebar-link:hover {
  background: #f0f0f0;
  text-decoration: none;
  color: inherit;
}

[data-theme="dark"] .sidebar-link:hover {
  background: #404040;
}

.sidebar-item.active .sidebar-link {
  background: #007bff;
  color: white;
}

.sidebar-count {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 400;
}

.sidebar-item.active .sidebar-count {
  opacity: 0.9;
}

/* Folder Styles */
.folder-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

[data-theme="dark"] .folder-item {
  background: #2d2d2d;
  border-color: #404040;
}

.folder-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 8px rgba(0,123,255,0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .folder-item:hover {
  box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.folder-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.folder-type-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.folder-info {
  text-align: center;
  margin-bottom: 1rem;
}

.folder-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  word-break: break-word;
  line-height: 1.3;
}

[data-theme="dark"] .folder-name {
  color: #e0e0e0;
}

.folder-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

[data-theme="dark"] .folder-meta {
  color: #aaa;
}

.folder-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.2;
}

[data-theme="dark"] .folder-stats {
  color: #888;
}

.folder-date {
  font-size: 0.8rem;
  color: #777;
  font-style: italic;
}

[data-theme="dark"] .folder-date {
  color: #999;
}

.folder-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.folder-item:hover .folder-actions {
  opacity: 1;
}

.action-btn {
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.action-btn:hover {
  background: rgba(0, 123, 255, 0.1);
}

.action-btn.danger:hover {
  background: rgba(220, 53, 69, 0.1);
}

[data-theme="dark"] .action-btn:hover {
  background: rgba(0, 123, 255, 0.2);
}

[data-theme="dark"] .action-btn.danger:hover {
  background: rgba(220, 53, 69, 0.2);
}

/* Enhanced folder display */
.folder-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  position: relative;
}

[data-theme="dark"] .folder-item {
  background: #2a2a2a;
  border-color: #444;
}

.folder-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

[data-theme="dark"] .folder-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #007bff;
}

.folder-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.folder-type-icon {
  color: #007bff;
}

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

.folder-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

[data-theme="dark"] .folder-name {
  color: #eee;
}

/* Empty state improvements */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 8px;
  border: 2px dashed #e0e0e0;
}

[data-theme="dark"] .empty-state {
  background: #2a2a2a;
  border-color: #444;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .empty-title {
  color: #eee;
}

.empty-text {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

[data-theme="dark"] .empty-text {
  color: #aaa;
}

/* Modern folder display */
.modern-all-files .file-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

[data-theme="dark"] .modern-all-files .file-card {
  background: #2a2a2a;
  border-color: #444;
}

.modern-all-files .file-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

[data-theme="dark"] .modern-all-files .file-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #007bff;
}

.file-card-checkbox {
  margin-right: 0.75rem;
}

.file-card-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.file-card-preview {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.file-card-info {
  flex: 1;
  min-width: 0;
}

.file-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

[data-theme="dark"] .file-card-name {
  color: #eee;
}

.file-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
}

[data-theme="dark"] .file-card-meta {
  color: #aaa;
}

.file-card-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.file-card:hover .file-card-actions {
  opacity: 1;
}

.modern-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed #e0e0e0;
  margin: 2rem 0;
}

[data-theme="dark"] .modern-empty {
  background: #2a2a2a;
  border-color: #444;
}

.modern-empty .empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.modern-empty .empty-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .modern-empty .empty-title {
  color: #eee;
}

.modern-empty .empty-desc {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 2rem;
}

[data-theme="dark"] .modern-empty .empty-desc {
  color: #aaa;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .modal-content {
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: #555;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

[data-theme="dark"] .modal-title {
  color: #e0e0e0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

[data-theme="dark"] .modal-close {
  color: #aaa;
}

[data-theme="dark"] .modal-close:hover {
  background: #404040;
  color: #e0e0e0;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

[data-theme="dark"] .modal-footer {
  border-top-color: #555;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

[data-theme="dark"] .form-group label {
  color: #e0e0e0;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.2s;
}

[data-theme="dark"] .form-input {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

.form-hint {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

[data-theme="dark"] .form-hint {
  color: #aaa;
}

/* Folder Statistics Styles */
.folder-stats {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

[data-theme="dark"] .folder-stats {
  background: #404040;
  border-color: #555;
}

.stat-item {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

[data-theme="dark"] .stat-label {
  color: #aaa;
}

.stat-value {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

[data-theme="dark"] .stat-value {
  color: #e0e0e0;
}

.file-type-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.type-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.8rem;
}

[data-theme="dark"] .type-stat {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

.type-icon {
  font-size: 0.9rem;
}

.type-count {
  font-weight: 600;
  color: #007bff;
}

[data-theme="dark"] .type-count {
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fm-main-content {
    flex-direction: column;
    height: auto;
  }
  
  .fm-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  [data-theme="dark"] .fm-sidebar {
    border-bottom-color: #404040;
  }
  
  .fm-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .fm-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .toolbar-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .search-input {
    width: 200px;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .file-type-stats {
    justify-content: center;
  }
}

/* Classic Bookmarks Styles */
.classic-bookmarks {
  background: #f5f5f5;
  min-height: calc(100vh - 120px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[data-theme="dark"] .classic-bookmarks {
  background: #1a1a1a;
  color: #e0e0e0;
}

/* Bookmarks Header */
.bm-header {
  background: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-theme="dark"] .bm-header {
  background: #2d2d2d;
  border-bottom-color: #404040;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bm-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bm-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

[data-theme="dark"] .bm-title {
  color: #e0e0e0;
}

.bm-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

[data-theme="dark"] .bm-subtitle {
  color: #aaa;
}

.bm-header-actions {
  display: flex;
  gap: 1rem;
}

/* Main Content Layout */
.bm-main-content {
  display: flex;
  height: calc(100vh - 200px);
}

/* Bookmarks Sidebar */
.bm-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 1.5rem;
  overflow-y: auto;
}

[data-theme="dark"] .bm-sidebar {
  background: #2d2d2d;
  border-right-color: #404040;
}

/* Domain Stats */
.domain-stats {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

[data-theme="dark"] .domain-stats {
  background: #404040;
  border-color: #555;
}

.domain-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

[data-theme="dark"] .domain-item {
  border-bottom-color: #555;
}

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

.domain-name {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  word-break: break-all;
}

[data-theme="dark"] .domain-name {
  color: #e0e0e0;
}

.domain-count {
  font-size: 0.8rem;
  color: #007bff;
  font-weight: 600;
  background: #e6f3ff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

[data-theme="dark"] .domain-count {
  background: #1a1a2e;
  color: #007bff;
}

/* Main Bookmarks Area */
.bm-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* Bookmarks Toolbar */
.bm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[data-theme="dark"] .bm-toolbar {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Bookmarks Grid */
.bm-bookmarks-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[data-theme="dark"] .bm-bookmarks-container {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.bookmarks-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Bookmark Item */
.bookmark-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

[data-theme="dark"] .bookmark-item {
  background: #2d2d2d;
  border-color: #404040;
}

.bookmark-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 8px rgba(0,123,255,0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .bookmark-item:hover {
  box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.bookmark-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.favicon-container {
  position: relative;
  display: inline-block;
}

.favicon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.fallback-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.bookmark-info {
  text-align: center;
  margin-bottom: 1rem;
}

.bookmark-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  word-break: break-word;
  line-height: 1.3;
  font-size: 1rem;
}

[data-theme="dark"] .bookmark-title {
  color: #e0e0e0;
}

.bookmark-url {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  word-break: break-all;
  font-family: monospace;
}

[data-theme="dark"] .bookmark-url {
  color: #aaa;
}

.bookmark-meta {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

[data-theme="dark"] .bookmark-meta {
  color: #666;
}

.bookmark-date {
  font-style: italic;
}

.bookmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.tag {
  background: #e6f3ff;
  color: #007bff;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

[data-theme="dark"] .tag {
  background: #1a1a2e;
  color: #007bff;
}

.tag-more {
  background: #f0f0f0;
  color: #666;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

[data-theme="dark"] .tag-more {
  background: #404040;
  color: #aaa;
}

.bookmark-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.bookmark-item:hover .bookmark-actions {
  opacity: 1;
}

/* Import Modal Styles */
.import-text {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

[data-theme="dark"] .import-text {
  color: #e0e0e0;
}

.import-hint {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

[data-theme="dark"] .import-hint {
  color: #aaa;
}

.import-info {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

[data-theme="dark"] .import-info {
  background: #404040;
  border-color: #555;
}

.import-info h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

[data-theme="dark"] .import-info h4 {
  color: #e0e0e0;
}

.import-info ul {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

[data-theme="dark"] .import-info ul {
  color: #aaa;
}

.import-info li {
  margin-bottom: 0.25rem;
}

.import-info strong {
  color: #007bff;
  font-weight: 600;
}

[data-theme="dark"] .import-info strong {
  color: #007bff;
}

/* File input styling */
input[type="file"] {
  padding: 0.5rem;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
}

[data-theme="dark"] input[type="file"] {
  border-color: #555;
  background: #404040;
}

input[type="file"]:hover {
  border-color: #007bff;
  background: #e6f3ff;
}

[data-theme="dark"] input[type="file"]:hover {
  background: #1a1a2e;
}

/* Select input styling */
select.form-input {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

[data-theme="dark"] select.form-input {
  border-color: #555;
  background: #2d2d2d;
  color: #e0e0e0;
}

select.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

/* Form hint styling */
.form-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
  font-style: italic;
}

[data-theme="dark"] .form-hint {
  color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bm-main-content {
    flex-direction: column;
    height: auto;
  }
  
  .bm-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  [data-theme="dark"] .bm-sidebar {
    border-bottom-color: #404040;
  }
  
  .bm-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .bm-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .bookmarks-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .toolbar-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .search-input {
    width: 200px;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
}

/* Browser Import Styles */
.import-step {
  margin-bottom: 2rem;
}

.import-step h4 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.1rem;
}

[data-theme="dark"] .import-step h4 {
  color: #e0e0e0;
}

.browser-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.browser-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #ffffff;
}

[data-theme="dark"] .browser-option {
  border-color: #555;
  background: #2d2d2d;
}

.browser-option:hover {
  border-color: #007bff;
  background: #f8f9fa;
  transform: translateY(-2px);
}

[data-theme="dark"] .browser-option:hover {
  background: #404040;
}

.browser-option.active {
  border-color: #007bff;
  background: #e6f3ff;
}

[data-theme="dark"] .browser-option.active {
  background: #1a1a2e;
}

.browser-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.browser-info h5 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-size: 1rem;
}

[data-theme="dark"] .browser-info h5 {
  color: #e0e0e0;
}

.browser-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

[data-theme="dark"] .browser-info p {
  color: #aaa;
}

.browser-instructions {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

[data-theme="dark"] .browser-instructions {
  background: #404040;
  border-color: #555;
}

.browser-instruction h5 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

[data-theme="dark"] .browser-instruction h5 {
  color: #e0e0e0;
}

.browser-instruction ol {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

[data-theme="dark"] .browser-instruction ol {
  color: #aaa;
}

.browser-instruction li {
  margin-bottom: 0.5rem;
}

.browser-instruction code {
  background: #e9ecef;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
}

[data-theme="dark"] .browser-instruction code {
  background: #2d2d2d;
  color: #e0e0e0;
}

.browser-instruction kbd {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  font-family: monospace;
  font-size: 0.85rem;
}

[data-theme="dark"] .browser-instruction kbd {
  background: #2d2d2d;
  border-color: #555;
  color: #e0e0e0;
}

/* Textarea styling */
textarea.form-input {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.9rem;
  font-family: monospace;
  resize: vertical;
  min-height: 120px;
}

[data-theme="dark"] textarea.form-input {
  border-color: #555;
  background: #2d2d2d;
  color: #e0e0e0;
}

textarea.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

/* Bookmark Selection */
.bookmark-selection {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
}

[data-theme="dark"] .bookmark-selection {
  border-color: #555;
  background: #2d2d2d;
}

.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

[data-theme="dark"] .selection-header {
  border-bottom-color: #555;
  background: #404040;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}

[data-theme="dark"] .checkbox-container {
  color: #e0e0e0;
}

.checkbox-container input {
  margin-right: 0.5rem;
}

#selection-count {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

[data-theme="dark"] #selection-count {
  color: #aaa;
}

.bookmarks-list {
  padding: 0;
}

.bookmark-item-select {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

[data-theme="dark"] .bookmark-item-select {
  border-bottom-color: #404040;
}

.bookmark-item-select:hover {
  background: #f8f9fa;
}

[data-theme="dark"] .bookmark-item-select:hover {
  background: #404040;
}

.bookmark-item-select:last-child {
  border-bottom: none;
}

.bookmark-checkbox {
  margin-right: 0.75rem;
}

.bookmark-info-select {
  flex: 1;
}

.bookmark-title-select {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

[data-theme="dark"] .bookmark-title-select {
  color: #e0e0e0;
}

.bookmark-url-select {
  font-size: 0.8rem;
  color: #666;
  word-break: break-all;
  font-family: monospace;
}

[data-theme="dark"] .bookmark-url-select {
  color: #aaa;
}

.bookmark-folder-select {
  font-size: 0.75rem;
  color: #007bff;
  background: #e6f3ff;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  display: inline-block;
  margin-top: 0.25rem;
}

[data-theme="dark"] .bookmark-folder-select {
  background: #1a1a2e;
  color: #007bff;
}

/* Import Divider */
.import-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.import-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

[data-theme="dark"] .import-divider::before {
  background: #555;
}

.import-divider span {
  background: #ffffff;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

[data-theme="dark"] .import-divider span {
  background: #1a1a1a;
  color: #aaa;
}

/* Vault Styles */
.vault-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

[data-theme="dark"] .vault-header {
  border-bottom-color: #555;
}

.vault-title h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: #333;
}

[data-theme="dark"] .vault-title h1 {
  color: #e0e0e0;
}

.vault-title p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

[data-theme="dark"] .vault-title p {
  color: #aaa;
}

.vault-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.2s;
}

[data-theme="dark"] .search-input {
  border-color: #555;
  background: #2d2d2d;
  color: #e0e0e0;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1rem;
}

[data-theme="dark"] .search-icon {
  color: #aaa;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 1rem;
  min-width: 200px;
  cursor: pointer;
}

[data-theme="dark"] .filter-select {
  border-color: #555;
  background: #2d2d2d;
  color: #e0e0e0;
}

.filter-select:focus {
  outline: none;
  border-color: #007bff;
}

/* Stats Cards */
.vault-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.2s;
}

[data-theme="dark"] .stat-card {
  background: #2d2d2d;
  border-color: #555;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stat-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .stat-number {
  color: #e0e0e0;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

[data-theme="dark"] .stat-label {
  color: #aaa;
}

/* Password Grid */
.passwords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.password-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .password-card {
  background: #2d2d2d;
  border-color: #555;
}

.password-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #007bff;
}

[data-theme="dark"] .password-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.site-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.site-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  margin-right: 0.75rem;
  object-fit: cover;
}

.site-details {
  flex: 1;
}

.site-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  word-break: break-word;
}

[data-theme="dark"] .site-name {
  color: #e0e0e0;
}

.username {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  word-break: break-all;
}

[data-theme="dark"] .username {
  color: #aaa;
}

.password-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.action-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.action-btn:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

[data-theme="dark"] .action-btn:hover {
  background: #404040;
}

.action-btn.danger:hover {
  background: #ffebee;
  color: #d32f2f;
}

[data-theme="dark"] .action-btn.danger:hover {
  background: #3d1a1a;
  color: #ff6b6b;
}

.password-content {
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

[data-theme="dark"] .password-content {
  border-top-color: #404040;
}

.password-field {
  margin-bottom: 1rem;
}

.password-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .password-field label {
  color: #aaa;
}

.password-display {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: #333;
  word-break: break-all;
}

[data-theme="dark"] .password-display {
  background: #404040;
  border-color: #555;
  color: #e0e0e0;
}

.password-revealed {
  color: #007bff;
  font-weight: 600;
}

.password-notes {
  margin-bottom: 1rem;
}

.password-notes label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .password-notes label {
  color: #aaa;
}

.password-notes p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  word-break: break-word;
}

[data-theme="dark"] .password-notes p {
  color: #aaa;
}

.password-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #999;
}

[data-theme="dark"] .password-meta {
  color: #777;
}

.domain-tag {
  background: #e6f3ff;
  color: #007bff;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

[data-theme="dark"] .domain-tag {
  background: #1a1a2e;
  color: #007bff;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: #f8f9fa;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
}

[data-theme="dark"] .empty-state {
  background: #404040;
  border-color: #555;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #333;
}

[data-theme="dark"] .empty-state h3 {
  color: #e0e0e0;
}

.empty-state p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
}

/* Task Modal */
.task-modal .modal-content {
  max-width: 600px;
  width: 90%;
}

.task-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.task-modal .form-group {
  margin-bottom: 1.5rem;
}

.task-modal label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .task-modal label {
  color: #e0e0e0;
}

.task-modal input,
.task-modal textarea,
.task-modal select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .task-modal input,
[data-theme="dark"] .task-modal textarea,
[data-theme="dark"] .task-modal select {
  border-color: #4a5568;
  background: #404040;
  color: #e0e0e0;
}

.task-modal input:focus,
.task-modal textarea:focus,
.task-modal select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.task-modal textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}

[data-theme="dark"] .modal-actions {
  border-top-color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
  .scheduler-container {
    padding: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .header-left h1 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .filter-controls {
    grid-template-columns: 1fr;
  }
  
  .tasks-container.grid-view {
    grid-template-columns: 1fr;
  }
  
  .task-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .task-modal .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .scheduler-header {
    padding: 1.5rem;
  }
  
  .header-left h1 {
    font-size: 1.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-card .stat-icon {
    font-size: 2rem;
  }
  
  .stat-card .stat-content h3 {
    font-size: 1.5rem;
  }
}

/* Enhanced Task Modal Styles */
.task-modal .modal-content {
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

[data-theme="dark"] .task-modal .modal-content {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a202c 100%);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.task-modal .modal-header {
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

[data-theme="dark"] .task-modal .modal-header {
  border-bottom-color: #4a5568;
}

.modal-title-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.modal-title-section h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d3748;
  letter-spacing: -0.025em;
}

[data-theme="dark"] .modal-title-section h3 {
  color: #e0e0e0;
}

.modal-title-section p {
  margin: 0;
  color: #718096;
  font-size: 0.9rem;
  font-weight: 500;
}

[data-theme="dark"] .modal-title-section p {
  color: #a0aec0;
}

/* Form Sections */
.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .form-section {
  background: rgba(45,45,45,0.5);
  border-color: #4a5568;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .section-header {
  border-bottom-color: #4a5568;
}

.section-icon {
  font-size: 1.25rem;
  padding: 0.5rem;
  background: rgba(102,126,234,0.1);
  border-radius: 8px;
  color: #667eea;
}

[data-theme="dark"] .section-icon {
  background: rgba(102,126,234,0.2);
}

.section-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3748;
  letter-spacing: -0.025em;
}

[data-theme="dark"] .section-header h4 {
  color: #e0e0e0;
}

/* Enhanced Form Groups */
.task-modal .form-group {
  margin-bottom: 1.5rem;
}

.task-modal label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

[data-theme="dark"] .task-modal label {
  color: #e0e0e0;
}

.label-icon {
  font-size: 1rem;
  opacity: 0.8;
}

/* Input Wrappers */
.input-wrapper,
.textarea-wrapper,
.select-wrapper {
  position: relative;
  transition: all 0.3s ease;
}

.input-wrapper input,
.textarea-wrapper textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.3s ease;
  outline: none;
  font-weight: 500;
}

[data-theme="dark"] .input-wrapper input,
[data-theme="dark"] .textarea-wrapper textarea {
  border-color: #4a5568;
  background: #404040;
  color: #e0e0e0;
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
  transform: translateY(-1px);
}

.input-wrapper input::placeholder,
.textarea-wrapper textarea::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

[data-theme="dark"] .input-wrapper input::placeholder,
[data-theme="dark"] .textarea-wrapper textarea::placeholder {
  color: #718096;
}

.textarea-wrapper textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

[data-theme="dark"] .select-wrapper select {
  border-color: #4a5568;
  background: #404040;
  color: #e0e0e0;
}

.select-wrapper select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
  transform: translateY(-1px);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 0.75rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] .select-arrow {
  color: #a0aec0;
}

.select-wrapper select:focus + .select-arrow {
  color: #667eea;
  transform: translateY(-50%) rotate(180deg);
}

/* Focus Borders */
.input-focus-border,
.textarea-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.input-wrapper input:focus ~ .input-focus-border,
.textarea-wrapper textarea:focus ~ .textarea-focus-border {
  width: 100%;
}

/* Form Rows */
.task-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Quick Actions */
.quick-actions {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(102,126,234,0.05);
  border-radius: 12px;
  border: 1px solid rgba(102,126,234,0.1);
}

[data-theme="dark"] .quick-actions {
  background: rgba(102,126,234,0.1);
  border-color: rgba(102,126,234,0.2);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

[data-theme="dark"] .quick-btn {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

.quick-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.quick-btn .btn-icon {
  font-size: 1rem;
}

/* Enhanced Modal Actions */
.task-modal .modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}

[data-theme="dark"] .task-modal .modal-actions {
  border-top-color: #4a5568;
}

.task-modal .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.task-modal .btn-secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

[data-theme="dark"] .task-modal .btn-secondary {
  background: #404040;
  color: #e0e0e0;
  border-color: #4a5568;
}

.task-modal .btn-secondary:hover {
  background: #edf2f7;
  transform: translateY(-1px);
}

[data-theme="dark"] .task-modal .btn-secondary:hover {
  background: #4a5568;
}

.task-modal .btn-classic {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.task-modal .btn-classic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.task-modal .btn-classic:active {
  transform: translateY(0);
}

/* Priority Color Indicators */
.select-wrapper select option[data-color="urgent"] {
  color: #e53e3e;
}

.select-wrapper select option[data-color="high"] {
  color: #f56565;
}

.select-wrapper select option[data-color="medium"] {
  color: #ed8936;
}

.select-wrapper select option[data-color="low"] {
  color: #48bb78;
}

/* Responsive Design */
@media (max-width: 768px) {
  .task-modal .modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .task-modal .modal-header {
    padding: 1.5rem;
  }
  
  .modal-title-section h3 {
    font-size: 1.25rem;
  }
  
  .form-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .task-modal .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .quick-btn {
    justify-content: center;
  }
  
  .task-modal .modal-actions {
    flex-direction: column;
  }
  
  .task-modal .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .task-modal .modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .task-modal .modal-header {
    padding: 1rem;
  }
  
  .form-section {
    padding: 0.75rem;
  }
  
  .input-wrapper input,
  .textarea-wrapper textarea,
  .select-wrapper select {
    padding: 0.875rem 1rem;
  }
}

/* Compact Scheduler Design */
.scheduler-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Compact Header */
.scheduler-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(102,126,234,0.2);
  position: relative;
  overflow: hidden;
}

.scheduler-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.header-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-text h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-text p {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.btn-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-compact:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Compact Stats Grid */
.stats-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card-compact {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .stat-card-compact {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a202c 100%);
  border-color: #4a5568;
}

.stat-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

[data-theme="dark"] .stat-card-compact:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.stat-icon-compact {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-content-compact h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d3748;
  line-height: 1;
}

[data-theme="dark"] .stat-content-compact h3 {
  color: #e0e0e0;
}

.stat-content-compact p {
  margin: 0.25rem 0 0 0;
  font-size: 0.75rem;
  color: #718096;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .stat-content-compact p {
  color: #a0aec0;
}

/* Compact Filters */
.filters-compact {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-theme="dark"] .filters-compact {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-compact {
  margin-bottom: 1rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  font-size: 0.875rem;
  color: #718096;
  z-index: 1;
}

[data-theme="dark"] .search-icon {
  color: #a0aec0;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  background: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
}

[data-theme="dark"] .search-input-wrapper input {
  border-color: #4a5568;
  background: #404040;
  color: #e0e0e0;
}

.search-input-wrapper input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

[data-theme="dark"] .search-input-wrapper input:focus {
  background: #4a5568;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

[data-theme="dark"] .filter-tab {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

.filter-tab:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

[data-theme="dark"] .filter-tab:hover {
  background: #4a5568;
  border-color: #718096;
}

.filter-tab.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Filter Dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.75rem;
  background: #ffffff;
  color: #4a5568;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] .filter-select {
  border-color: #4a5568;
  background: #404040;
  color: #e0e0e0;
}

.filter-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
}

/* Tasks Container */
.tasks-container-compact {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-theme="dark"] .tasks-container-compact {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tasks-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

[data-theme="dark"] .tasks-header-compact {
  border-bottom-color: #4a5568;
  background: #404040;
}

.tasks-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tasks-title h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2d3748;
}

[data-theme="dark"] .tasks-title h2 {
  color: #e0e0e0;
}

.task-count {
  font-size: 0.75rem;
  color: #718096;
  font-weight: 500;
}

[data-theme="dark"] .task-count {
  color: #a0aec0;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
}

.view-btn-compact {
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

[data-theme="dark"] .view-btn-compact {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

.view-btn-compact:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

[data-theme="dark"] .view-btn-compact:hover {
  background: #4a5568;
  border-color: #718096;
}

.view-btn-compact.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Tasks List */
.tasks-list {
  padding: 0;
}

.task-item-compact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
}

[data-theme="dark"] .task-item-compact {
  border-bottom-color: #4a5568;
}

.task-item-compact:hover {
  background: #f8fafc;
}

[data-theme="dark"] .task-item-compact:hover {
  background: #404040;
}

.task-item-compact:last-child {
  border-bottom: none;
}

/* Checkbox */
.task-checkbox-wrapper {
  position: relative;
  margin-top: 0.125rem;
}

.task-checkbox-compact {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: relative;
  display: block;
  height: 18px;
  width: 18px;
  background: #ffffff;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .checkbox-custom {
  background: #404040;
  border-color: #718096;
}

.task-checkbox-compact:checked ~ .checkbox-custom {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-custom:after {
  content: '';
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.task-checkbox-compact:checked ~ .checkbox-custom:after {
  display: block;
}

/* Task Content */
.task-content {
  flex: 1;
  min-width: 0;
}

.task-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.task-title-compact {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

[data-theme="dark"] .task-title-compact {
  color: #e0e0e0;
}

.task-title-compact.completed {
  text-decoration: line-through;
  color: #a0aec0;
}

[data-theme="dark"] .task-title-compact.completed {
  color: #718096;
}

.task-badges-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.priority-urgent { background: #e53e3e; }
.priority-high { background: #f56565; }
.priority-medium { background: #ed8936; }
.priority-low { background: #48bb78; }

.status-badge-compact {
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-in_progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

[data-theme="dark"] .status-pending {
  background: #451a03;
  color: #fbbf24;
}

[data-theme="dark"] .status-in_progress {
  background: #1e3a8a;
  color: #60a5fa;
}

[data-theme="dark"] .status-completed {
  background: #064e3b;
  color: #34d399;
}

[data-theme="dark"] .status-cancelled {
  background: #7f1d1d;
  color: #f87171;
}

.task-description-compact {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  color: #718096;
  line-height: 1.4;
}

[data-theme="dark"] .task-description-compact {
  color: #a0aec0;
}

.task-meta-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-info-compact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.task-date-compact,
.task-category-compact,
.task-recurring-compact {
  font-size: 0.625rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

[data-theme="dark"] .task-date-compact,
[data-theme="dark"] .task-category-compact,
[data-theme="dark"] .task-recurring-compact {
  color: #a0aec0;
}

.task-date-compact.overdue {
  color: #e53e3e;
  font-weight: 600;
}

.task-date-compact.due-today {
  color: #ed8936;
  font-weight: 600;
}

.task-date-compact.due-soon {
  color: #48bb78;
  font-weight: 600;
}

.task-actions-compact {
  display: flex;
  gap: 0.25rem;
}

.action-btn-compact {
  padding: 0.25rem;
  background: none;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: #718096;
}

[data-theme="dark"] .action-btn-compact {
  color: #a0aec0;
}

.action-btn-compact:hover {
  background: #edf2f7;
  color: #4a5568;
}

[data-theme="dark"] .action-btn-compact:hover {
  background: #4a5568;
  color: #e0e0e0;
}

/* Empty State */
.empty-state-compact {
  text-align: center;
  padding: 3rem 1rem;
  color: #718096;
}

[data-theme="dark"] .empty-state-compact {
  color: #a0aec0;
}

.empty-icon-compact {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-compact h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4a5568;
}

[data-theme="dark"] .empty-state-compact h3 {
  color: #e0e0e0;
}

.empty-state-compact p {
  margin: 0 0 1.5rem 0;
  font-size: 0.875rem;
}

/* Grid View */
.tasks-list.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.tasks-list.grid-view .task-item-compact {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin: 0;
}

[data-theme="dark"] .tasks-list.grid-view .task-item-compact {
  border-color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
  .scheduler-container {
    padding: 0.5rem;
  }
  
  .scheduler-header {
    padding: 1rem;
  }
  
  .header-text h1 {
    font-size: 1.5rem;
  }
  
  .stats-grid-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card-compact {
    padding: 0.75rem;
  }
  
  .stat-content-compact h3 {
    font-size: 1.25rem;
  }
  
  .filters-compact {
    padding: 1rem;
  }
  
  .filter-tabs {
    gap: 0.25rem;
  }
  
  .filter-tab {
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
  }
  
  .filter-dropdowns {
    gap: 0.5rem;
  }
  
  .filter-select {
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
  }
  
  .task-item-compact {
    padding: 0.75rem 1rem;
  }
  
  .task-title-compact {
    font-size: 0.8125rem;
  }
  
  .task-description-compact {
    font-size: 0.6875rem;
  }
  
  .task-date-compact,
  .task-category-compact,
  .task-recurring-compact {
    font-size: 0.5625rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .stats-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-tabs {
    justify-content: center;
  }
  
  .filter-dropdowns {
    flex-direction: column;
  }
  
  .tasks-header-compact {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .view-toggle {
    align-self: flex-end;
  }
}

/* High-End Task Details Modal */
.task-details-modal .modal-content {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .task-details-modal .modal-content {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.task-details-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  z-index: 1;
}

.task-details-content {
  padding: 0;
}

/* Task Details Header */
.task-details-header {
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

[data-theme="dark"] .task-details-header {
  border-bottom-color: #4a5568;
}

.task-status-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.task-completion-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.task-complete-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.task-complete-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: #2d3748;
  transition: all 0.3s ease;
}

[data-theme="dark"] .task-complete-label {
  color: #e0e0e0;
}

.checkbox-custom-large {
  position: relative;
  display: block;
  height: 24px;
  width: 24px;
  background: #ffffff;
  border: 3px solid #cbd5e0;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-theme="dark"] .checkbox-custom-large {
  background: #404040;
  border-color: #718096;
}

.task-complete-checkbox:checked ~ .task-complete-label .checkbox-custom-large {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.checkbox-custom-large:after {
  content: '';
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.task-complete-checkbox:checked ~ .task-complete-label .checkbox-custom-large:after {
  display: block;
}

.completion-text {
  font-size: 1rem;
  font-weight: 600;
}

.task-priority-display {
  display: flex;
  align-items: center;
}

.priority-badge-large {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.priority-badge-large.priority-urgent {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
}

.priority-badge-large.priority-high {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  color: white;
}

.priority-badge-large.priority-medium {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  color: white;
}

.priority-badge-large.priority-low {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

/* Task Title Section */
.task-title-section {
  text-align: center;
}

.task-title-section h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 800;
  color: #2d3748;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

[data-theme="dark"] .task-title-section h2 {
  color: #e0e0e0;
}

.task-meta-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.task-status-badge-large {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-status-badge-large.status-pending {
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  color: #92400e;
}

.task-status-badge-large.status-in_progress {
  background: linear-gradient(135deg, #dbeafe, #3b82f6);
  color: #1e40af;
}

.task-status-badge-large.status-completed {
  background: linear-gradient(135deg, #d1fae5, #10b981);
  color: #065f46;
}

.task-status-badge-large.status-cancelled {
  background: linear-gradient(135deg, #fee2e2, #ef4444);
  color: #991b1b;
}

.task-category-badge {
  padding: 0.5rem 1rem;
  background: rgba(102,126,234,0.1);
  border: 1px solid rgba(102,126,234,0.2);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #667eea;
}

[data-theme="dark"] .task-category-badge {
  background: rgba(102,126,234,0.2);
  border-color: rgba(102,126,234,0.3);
  color: #a0aec0;
}

/* Task Information Grid */
.task-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.info-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .info-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a202c 100%);
  border-color: #4a5568;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

[data-theme="dark"] .info-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.info-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .info-content h4 {
  color: #e0e0e0;
}

.info-content p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4a5568;
  line-height: 1.4;
}

[data-theme="dark"] .info-content p {
  color: #a0aec0;
}

/* Task Progress Section */
.task-progress-section {
  padding: 2rem;
  border-top: 2px solid #e2e8f0;
}

[data-theme="dark"] .task-progress-section {
  border-top-color: #4a5568;
}

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

.progress-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
}

[data-theme="dark"] .progress-header h3 {
  color: #e0e0e0;
}

.progress-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.progress-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

[data-theme="dark"] .progress-btn {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

.progress-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] .progress-btn:hover {
  background: #4a5568;
  border-color: #718096;
}

.progress-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.progress-btn .btn-icon {
  font-size: 1rem;
}

/* Task Actions Section */
.task-actions-section {
  padding: 2rem;
  border-top: 2px solid #e2e8f0;
  background: #f8fafc;
}

[data-theme="dark"] .task-actions-section {
  border-top-color: #4a5568;
  background: #404040;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn-primary,
.action-btn-secondary,
.action-btn-danger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.action-btn-secondary {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.action-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(72,187,120,0.4);
}

.action-btn-danger {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  color: white;
}

.action-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,101,101,0.4);
}

.action-btn-primary .btn-icon,
.action-btn-secondary .btn-icon,
.action-btn-danger .btn-icon {
  font-size: 1.125rem;
}

/* View Button Styling */
.view-btn {
  background: rgba(102,126,234,0.1) !important;
  color: #667eea !important;
  border: 1px solid rgba(102,126,234,0.2) !important;
}

[data-theme="dark"] .view-btn {
  background: rgba(102,126,234,0.2) !important;
  color: #a0aec0 !important;
  border-color: rgba(102,126,234,0.3) !important;
}

.view-btn:hover {
  background: rgba(102,126,234,0.2) !important;
  color: #667eea !important;
  transform: scale(1.1);
}

[data-theme="dark"] .view-btn:hover {
  background: rgba(102,126,234,0.3) !important;
  color: #e0e0e0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .task-details-modal .modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .task-details-header {
    padding: 1.5rem;
  }
  
  .task-status-section {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .task-title-section h2 {
    font-size: 1.5rem;
  }
  
  .task-info-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .info-card {
    padding: 1.25rem;
  }
  
  .task-progress-section {
    padding: 1.5rem;
  }
  
  .progress-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .progress-actions {
    width: 100%;
    justify-content: center;
  }
  
  .progress-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
  
  .task-actions-section {
    padding: 1.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-btn-primary,
  .action-btn-secondary,
  .action-btn-danger {
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .task-details-modal .modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .task-details-header {
    padding: 1rem;
  }
  
  .task-info-grid {
    padding: 1rem;
  }
  
  .info-card {
    padding: 1rem;
  }
  
  .task-progress-section {
    padding: 1rem;
  }
  
  .task-actions-section {
    padding: 1rem;
  }
}

/* Bulk Operations */
.bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  margin-bottom: 1rem;
  color: white;
}

.bulk-info {
  font-weight: 600;
  font-size: 0.875rem;
}

.bulk-actions {
  display: flex;
  gap: 0.5rem;
}

.bulk-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bulk-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.bulk-checkbox-wrapper {
  position: relative;
  margin-right: 0.5rem;
}

.bulk-select-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom-bulk {
  position: relative;
  display: block;
  height: 16px;
  width: 16px;
  background: #ffffff;
  border: 2px solid #cbd5e0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.bulk-select-checkbox:checked ~ .checkbox-custom-bulk {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-custom-bulk:after {
  content: '';
  position: absolute;
  display: none;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bulk-select-checkbox:checked ~ .checkbox-custom-bulk:after {
  display: block;
}

/* Progress Charts */
.progress-charts {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-theme="dark"] .progress-charts {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chart-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.chart-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
}

[data-theme="dark"] .chart-card {
  background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
  border-color: #4a5568;
}

.chart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.chart-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
}

[data-theme="dark"] .chart-card h4 {
  color: #e0e0e0;
}

.progress-ring {
  position: relative;
  display: inline-block;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 800;
  color: #667eea;
}

[data-theme="dark"] .progress-text {
  color: #a0aec0;
}

.priority-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.priority-bar {
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
}

.priority-bar.urgent {
  background: linear-gradient(90deg, #e53e3e, #c53030);
}

.priority-bar.high {
  background: linear-gradient(90deg, #f56565, #e53e3e);
}

.priority-bar.medium {
  background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.priority-bar.low {
  background: linear-gradient(90deg, #48bb78, #38a169);
}

/* Calendar View */
.calendar-view {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-theme="dark"] .calendar-view {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.calendar-nav {
  padding: 0.5rem 1rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="dark"] .calendar-nav {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

.calendar-nav:hover {
  background: #edf2f7;
  transform: translateY(-1px);
}

[data-theme="dark"] .calendar-nav:hover {
  background: #4a5568;
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
}

[data-theme="dark"] .calendar-header h3 {
  color: #e0e0e0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.calendar-weekdays div {
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #718096;
  padding: 0.5rem;
}

[data-theme="dark"] .calendar-weekdays div {
  color: #a0aec0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

[data-theme="dark"] .calendar-day {
  border-color: #4a5568;
}

.calendar-day:hover {
  background: #f8fafc;
  transform: scale(1.02);
}

[data-theme="dark"] .calendar-day:hover {
  background: #404040;
}

.calendar-day.other-month {
  opacity: 0.5;
}

.calendar-day.today {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
}

.day-number {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.calendar-task {
  font-size: 0.625rem;
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  font-weight: 500;
}

.calendar-task.priority-urgent {
  background: #e53e3e;
}

.calendar-task.priority-high {
  background: #f56565;
}

.calendar-task.priority-medium {
  background: #ed8936;
}

.calendar-task.priority-low {
  background: #48bb78;
}

/* Kanban View */
.kanban-view {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-theme="dark"] .kanban-view {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: 400px;
}

.kanban-column {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .kanban-column {
  background: #404040;
  border-color: #4a5568;
}

.kanban-column h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
  text-align: center;
}

[data-theme="dark"] .kanban-column h4 {
  color: #e0e0e0;
}

.kanban-tasks {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kanban-task {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

[data-theme="dark"] .kanban-task {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.kanban-task:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] .kanban-task:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Quick Add Floating Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102,126,234,0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}

/* Responsive Design for New Features */
@media (max-width: 768px) {
  .bulk-toolbar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .bulk-actions {
    justify-content: center;
  }
  
  .chart-container {
    grid-template-columns: 1fr;
  }
  
  .calendar-days {
    gap: 0.25rem;
  }
  
  .calendar-day {
    padding: 0.25rem;
  }
  
  .calendar-task {
    font-size: 0.5rem;
    padding: 0.0625rem 0.125rem;
  }
  
  .kanban-board {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .fab {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .calendar-weekdays div {
    font-size: 0.75rem;
    padding: 0.25rem;
  }
  
  .day-number {
    font-size: 0.75rem;
  }
  
  .kanban-column {
    padding: 0.75rem;
  }
  
  .kanban-task {
    padding: 0.5rem;
  }
}

/* Bulk Operations Styles */
.bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  margin-left: 1rem;
  color: white;
  font-size: 0.875rem;
}

.bulk-info {
  font-weight: 600;
}

.bulk-actions {
  display: flex;
  gap: 0.5rem;
}

.bulk-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bulk-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.bulk-checkbox-wrapper {
  position: relative;
  margin-right: 0.5rem;
}

.bulk-select-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom-bulk {
  position: relative;
  display: block;
  height: 16px;
  width: 16px;
  background: #ffffff;
  border: 2px solid #cbd5e0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.bulk-select-checkbox:checked ~ .checkbox-custom-bulk {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-custom-bulk:after {
  content: '';
  position: absolute;
  display: none;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bulk-select-checkbox:checked ~ .checkbox-custom-bulk:after {
  display: block;
}

/* Advanced Search Styles */
.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advanced-search-btn {
  padding: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.advanced-search-btn:hover {
  background: #edf2f7;
}

.advanced-search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 300px;
}

[data-theme="dark"] .advanced-search-panel {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a5568;
}

[data-theme="dark"] .filter-group label {
  color: #a0aec0;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
}

[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

.search-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Enhanced File Item Styles */
.file-item,
.folder-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
}

[data-theme="dark"] .file-item,
[data-theme="dark"] .folder-item {
  background: #2d2d2d;
  border-color: #4a5568;
}

.file-item:hover,
.folder-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] .file-item:hover,
[data-theme="dark"] .folder-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.file-item.selected,
.folder-item.selected {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
}

.file-tags {
  font-size: 0.75rem;
  color: #718096;
  background: #f7fafc;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

[data-theme="dark"] .file-tags {
  color: #a0aec0;
  background: #404040;
}

/* File Actions Enhancement */
.file-actions {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-item:hover .file-actions,
.folder-item:hover .file-actions {
  opacity: 1;
}

.action-btn {
  padding: 0.375rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

[data-theme="dark"] .action-btn {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

.action-btn:hover {
  background: #edf2f7;
  transform: scale(1.1);
}

[data-theme="dark"] .action-btn:hover {
  background: #4a5568;
}

.action-btn.danger:hover {
  background: #fed7d7;
  color: #c53030;
}

[data-theme="dark"] .action-btn.danger:hover {
  background: #742a2a;
  color: #feb2b2;
}

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

.share-modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] .share-modal-content {
  background: #2d2d2d;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.share-link {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.875rem;
}

[data-theme="dark"] .share-link {
  background: #404040;
  border-color: #4a5568;
  color: #e0e0e0;
}

/* File Rename Styles */
.file-name[contenteditable="true"] {
  background: #f8fafc;
  border: 1px solid #667eea;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  outline: none;
}

[data-theme="dark"] .file-name[contenteditable="true"] {
  background: #404040;
  border-color: #667eea;
  color: #e0e0e0;
}

/* Storage Analytics */
.storage-analytics {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-theme="dark"] .storage-analytics {
  background: #2d2d2d;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.analytics-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .analytics-card {
  background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
  border-color: #4a5568;
}

.analytics-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a5568;
}

[data-theme="dark"] .analytics-card h4 {
  color: #a0aec0;
}

.analytics-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

[data-theme="dark"] .analytics-value {
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bulk-toolbar {
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 0;
    margin-top: 0.75rem;
  }
  
  .bulk-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .advanced-search-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
  }
  
  .file-actions {
    opacity: 1;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bulk-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }
  
  .file-item,
  .folder-item {
    padding: 0.5rem;
  }
  
  .file-name,
  .folder-name {
    font-size: 0.875rem;
  }
}

/* Enhanced Upload Styles */
.fm-upload-area {
  background: #ffffff;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .fm-upload-area {
  background: #2d2d2d;
  border-color: #4a5568;
}

.fm-upload-area.dragover {
  border-color: #667eea;
  background: rgba(102,126,234,0.05);
  transform: scale(1.02);
}

[data-theme="dark"] .fm-upload-area.dragover {
  background: rgba(102,126,234,0.1);
}

.upload-zone {
  text-align: center;
  transition: all 0.3s ease;
}

.upload-zone.drag-active {
  transform: scale(1.05);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #718096;
}

[data-theme="dark"] .upload-icon {
  color: #a0aec0;
}

.upload-text {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .upload-text {
  color: #e0e0e0;
}

.upload-hint {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .upload-hint {
  color: #a0aec0;
}

/* Upload Options */
.upload-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .upload-options {
  background: #404040;
  border-color: #4a5568;
}

.upload-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-option label {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
  cursor: pointer;
}

[data-theme="dark"] .upload-option label {
  color: #a0aec0;
}

.upload-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #667eea;
}

.upload-folder-select {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #ffffff;
  min-width: 200px;
}

[data-theme="dark"] .upload-folder-select {
  border-color: #4a5568;
  background: #404040;
  color: #e0e0e0;
}

/* Upload Progress */
.upload-progress {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .upload-progress {
  background: #2d2d2d;
  border-color: #4a5568;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .progress-header {
  border-bottom-color: #4a5568;
}

.progress-header h4 {
  margin: 0;
  color: #2d3748;
  font-weight: 600;
}

[data-theme="dark"] .progress-header h4 {
  color: #e0e0e0;
}

.cancel-upload {
  padding: 0.5rem 1rem;
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-upload:hover {
  background: #c53030;
  transform: translateY(-1px);
}

.progress-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .progress-item {
  background: #404040;
  border-color: #4a5568;
}

.progress-file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-file-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.875rem;
}

[data-theme="dark"] .progress-file-name {
  color: #e0e0e0;
}

.progress-file-size {
  font-size: 0.75rem;
  color: #718096;
}

[data-theme="dark"] .progress-file-size {
  color: #a0aec0;
}

.progress-status {
  font-size: 0.75rem;
  font-weight: 500;
}

.progress-status.completed {
  color: #38a169;
}

.progress-status.failed {
  color: #e53e3e;
}

.progress-bar-item {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

[data-theme="dark"] .progress-bar-item {
  background: #4a5568;
}

.progress-fill-item {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-summary span {
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 500;
}

[data-theme="dark"] .progress-summary span {
  color: #a0aec0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

[data-theme="dark"] .progress-bar {
  background: #4a5568;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.3s ease;
}

/* Enhanced Drag & Drop */
.fm-upload-area.dragover .upload-zone {
  transform: scale(1.05);
}

.fm-upload-area.dragover .upload-icon {
  color: #667eea;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Upload Button Enhancement */
.btn-link {
  background: none;
  border: none;
  color: #667eea;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: #764ba2;
  text-decoration: none;
}

/* Responsive Upload */
@media (max-width: 768px) {
  .fm-upload-area {
    padding: 1.5rem;
  }
  
  .upload-options {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .upload-folder-select {
    min-width: auto;
    width: 100%;
  }
  
  .progress-file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .fm-upload-area {
    padding: 1rem;
  }
  
  .upload-icon {
    font-size: 2.5rem;
  }
  
  .upload-text {
    font-size: 1rem;
  }
  
  .progress-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* --- Compact File/Folder Card Styles for File Manager --- */
.files-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  padding: 0.7rem;
}
.file-item, .folder-item {
  padding: 0.5rem 0.6rem;
  min-width: 0;
  min-height: 140px;
  font-size: 0.92rem;
  border-radius: 7px;
}
.file-icon, .folder-icon {
  margin-bottom: 0.4rem;
}
.file-type-icon, .folder-type-icon {
  font-size: 1.5rem;
}
.file-name, .folder-name {
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.file-meta, .folder-meta {
  font-size: 0.78rem;
  gap: 0.2rem;
}
.file-actions, .folder-actions {
  gap: 0.15rem;
}
.action-btn.btn-sm {
  font-size: 0.85rem;
  padding: 0.18rem 0.4rem;
  min-width: 0;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.4rem;
    padding: 0.4rem;
  }
  .file-item, .folder-item {
    min-height: 100px;
    padding: 0.3rem 0.3rem;
  }
  .file-type-icon, .folder-type-icon {
    font-size: 1.1rem;
  }
  .file-name, .folder-name {
    font-size: 0.89rem;
  }
  .file-meta, .folder-meta {
    font-size: 0.7rem;
  }
  .action-btn.btn-sm {
    font-size: 0.7rem;
    padding: 0.12rem 0.25rem;
  }
}

/* Two-column list view for file manager */
.files-grid.list-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding: 1rem;
}
.files-grid.list-view .file-item,
.files-grid.list-view .folder-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #eee;
  border-radius: 7px;
  background: #fff;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.files-grid.list-view .file-icon,
.files-grid.list-view .folder-icon {
  margin-right: 1rem;
  margin-bottom: 0;
}
.files-grid.list-view .file-info,
.files-grid.list-view .folder-info {
  flex: 1;
  min-width: 0;
}
.files-grid.list-view .file-actions,
.files-grid.list-view .folder-actions {
  margin-left: auto;
  margin-top: 0;
  gap: 0.2rem;
}
@media (max-width: 700px) {
  .files-grid.list-view {
    grid-template-columns: 1fr;
  }
}

/* Four-column grid view for file manager */
.files-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}
@media (max-width: 1100px) {
  .files-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .files-grid {
    grid-template-columns: 1fr;
  }
}

/* --- File/Folder Card Layout for Grid and List View --- */
.files-grid .file-item,
.files-grid .folder-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.files-grid .file-actions,
.files-grid .folder-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.files-grid.list-view .file-item,
.files-grid.list-view .folder-item {
  flex-direction: row !important;
  align-items: center;
  height: auto;
}

.files-grid.list-view .file-actions,
.files-grid.list-view .folder-actions {
  margin-top: 0;
  margin-left: auto;
  justify-content: flex-end;
}
/* --- End File/Folder Card Layout --- */

/* --- Two-column List View for File Manager (Overrides) --- */
.files-grid.list-view {
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding: 1rem;
}
@media (max-width: 900px) {
  .files-grid.list-view {
    grid-template-columns: 1fr;
  }
}
.files-grid.list-view .file-item,
.files-grid.list-view .folder-item {
  flex-direction: row !important;
  align-items: center;
  height: auto;
  min-width: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 0.5rem 0.7rem;
  margin-bottom: 0;
}
.files-grid.list-view .file-icon,
.files-grid.list-view .folder-icon {
  margin-right: 1rem;
  margin-bottom: 0;
}
.files-grid.list-view .file-info,
.files-grid.list-view .folder-info {
  flex: 1;
  min-width: 0;
}
.files-grid.list-view .file-actions,
.files-grid.list-view .folder-actions {
  margin-top: 0;
  margin-left: auto;
  justify-content: flex-end;
}
/* --- End Two-column List View Overrides --- */

/* --- Dashboard Analytics Grid Styles --- */
.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 2.5rem 0;
}
.dashboard-analytic-card {
  background: #f7f9fb;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.dashboard-analytic-card:hover {
  box-shadow: 0 4px 24px rgba(0,123,255,0.13);
  transform: translateY(-4px) scale(1.03);
}
.dashboard-analytic-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  color: #007bff;
  background: #eaf2ff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 6px rgba(0,123,255,0.07);
}
.dashboard-analytic-value {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #222;
}
.dashboard-analytic-label {
  color: #666;
  font-size: 1.05rem;
  margin-top: 0.1rem;
}
[data-theme="dark"] .dashboard-analytic-card {
  background: #181a1b;
  color: #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,0.22);
}
[data-theme="dark"] .dashboard-analytic-icon {
  background: #23272b;
  color: #66aaff;
  box-shadow: 0 1px 6px rgba(0,123,255,0.18);
}
[data-theme="dark"] .dashboard-analytic-value {
  color: #fff;
}
[data-theme="dark"] .dashboard-analytic-label {
  color: #bbb;
}
@media (max-width: 700px) {
  .dashboard-analytics-grid {
    gap: 0.7rem;
    grid-template-columns: 1fr;
  }
  .dashboard-analytic-card {
    padding: 1rem 0.5rem 0.7rem 0.5rem;
}
}
/* --- End Dashboard Analytics Grid Styles --- */
