@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css");
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #343a40;
  background-color: #f9fafb;
  font-size: 0.875rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1019;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
}
.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.admin-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #dee2e6;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1020;
  transition: all 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.admin-sidebar.collapsed {
  width: 80px;
}
.admin-sidebar.collapsed .nav-section {
  margin-bottom: 0.5rem;
}
.admin-sidebar.collapsed .nav-section .nav-section-title {
  display: none;
}
.admin-sidebar.collapsed .nav-section:not(:first-child) {
  position: relative;
}
.admin-sidebar.collapsed .nav-section:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: rgba(222, 226, 230, 0.5);
}
.admin-sidebar.collapsed .sidebar-brand-text,
.admin-sidebar.collapsed .nav-text,
.admin-sidebar.collapsed .nav-badge {
  display: none;
}
.admin-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 1rem;
  margin: 0.25rem 0.5rem;
}
.admin-sidebar.collapsed .nav-link .nav-icon {
  margin-right: 0;
}
.admin-sidebar.collapsed .nav-link:hover {
  transform: scale(1.05);
}
.admin-sidebar.collapsed .sidebar-footer .user-info {
  justify-content: center;
}
.admin-sidebar.collapsed .sidebar-footer .user-info .user-details {
  opacity: 0;
  visibility: hidden;
  width: 0;
  overflow: hidden;
}
.admin-sidebar.collapsed .sidebar-footer .user-info .user-avatar {
  margin-right: 0;
}
.admin-sidebar.collapsed .sidebar-brand {
  justify-content: center;
}
.admin-sidebar.collapsed .sidebar-brand .brand-icon {
  margin-right: 0;
}
.admin-sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 70px;
  border-bottom: 1px solid #dee2e6;
  text-decoration: none;
  color: #212529;
  transition: all 0.2s ease-in-out;
}
.admin-sidebar .sidebar-brand:hover {
  background: #f8f9fa;
  color: #4158D0;
}
.admin-sidebar .sidebar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-right: 1rem;
  transition: all 0.2s ease-in-out;
}
.admin-sidebar .sidebar-brand .sidebar-brand-text {
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}
.admin-sidebar .sidebar-nav {
  padding: 1rem 0;
}
.admin-sidebar .sidebar-nav .nav-section {
  margin-bottom: 1.5rem;
}
.admin-sidebar .sidebar-nav .nav-section .nav-section-title {
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item .nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #495057;
  text-decoration: none;
  border-radius: 0;
  margin: 0 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  position: relative;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item .nav-link:hover {
  background: #f8f9fa;
  color: #4158D0;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item .nav-link.active {
  background: rgba(65, 88, 208, 0.1);
  color: #4158D0;
  font-weight: 500;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  border-radius: 0 2px 2px 0;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item .nav-link .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item .nav-link .nav-text {
  flex: 1;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item .nav-link .nav-badge {
  background: #dc3545;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 50rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item.has-submenu .nav-link .nav-arrow {
  margin-left: auto;
  transition: all 0.2s ease-in-out;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item.has-submenu .nav-link[aria-expanded=true] .nav-arrow {
  transform: rotate(90deg);
}
.admin-sidebar .sidebar-nav .nav-section .nav-item.has-submenu .submenu {
  padding-left: 3rem;
  background: rgba(248, 249, 250, 0.5);
  margin: 0 0.5rem;
  border-radius: 0.5rem;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item.has-submenu .submenu .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin: 0;
}
.admin-sidebar .sidebar-nav .nav-section .nav-item.has-submenu .submenu .nav-link::before {
  left: 0.5rem;
}
.admin-sidebar .sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #dee2e6;
  background: #ffffff;
  height: 50px;
}
.admin-sidebar .sidebar-footer .user-info {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 100%;
  background: transparent;
  border-radius: 0;
  margin: 0;
  transition: all 0.2s ease-in-out;
}
.admin-sidebar .sidebar-footer .user-info:hover {
  background: #f8f9fa;
}
.admin-sidebar .sidebar-footer .user-info .user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 1rem;
  transition: all 0.2s ease-in-out;
}
.admin-sidebar .sidebar-footer .user-info .user-details {
  flex: 1;
  min-width: 0;
  transition: all 0.2s ease-in-out;
}
.admin-sidebar .sidebar-footer .user-info .user-details .user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #212529;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.admin-sidebar .sidebar-footer .user-info .user-details .user-role {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.admin-sidebar.collapsed + .admin-content,
.admin-sidebar.collapsed ~ .admin-content {
  margin-left: 80px;
}
.admin-content .admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.admin-content .admin-topbar .topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-content .admin-topbar .topbar-left .sidebar-toggle {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.admin-content .admin-topbar .topbar-left .sidebar-toggle:hover {
  background: #f8f9fa;
  color: #4158D0;
}
.admin-content .admin-topbar .topbar-left .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-content .admin-topbar .topbar-left .breadcrumb .breadcrumb-item {
  font-size: 0.875rem;
  color: #6c757d;
}
.admin-content .admin-topbar .topbar-left .breadcrumb .breadcrumb-item.active {
  color: #212529;
  font-weight: 500;
}
.admin-content .admin-topbar .topbar-left .breadcrumb .breadcrumb-item a {
  color: #4158D0;
  text-decoration: none;
}
.admin-content .admin-topbar .topbar-left .breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}
.admin-content .admin-topbar .topbar-left .breadcrumb .breadcrumb-separator {
  color: #6c757d;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}
.admin-content .admin-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-content .admin-topbar .topbar-right .topbar-item {
  position: relative;
}
.admin-content .admin-topbar .topbar-right .topbar-item .topbar-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #6c757d;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  font-size: 1.1rem;
  cursor: pointer;
}
.admin-content .admin-topbar .topbar-right .topbar-item .topbar-btn:hover {
  background: #f8f9fa;
  color: #4158D0;
}
.admin-content .admin-topbar .topbar-right .topbar-item .topbar-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(65, 88, 208, 0.25);
}
.admin-content .admin-topbar .topbar-right .topbar-item .topbar-btn#darkModeToggle .bi-moon-fill,
.admin-content .admin-topbar .topbar-right .topbar-item .topbar-btn#darkModeToggle .bi-sun-fill {
  transition: all 0.2s ease-in-out;
}
.admin-content .admin-topbar .topbar-right .topbar-item .topbar-btn .notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.admin-content .admin-topbar .topbar-right .user-dropdown .dropdown-toggle {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}
.admin-content .admin-topbar .topbar-right .user-dropdown .dropdown-toggle:hover {
  background: #f8f9fa;
}
.admin-content .admin-topbar .topbar-right .user-dropdown .dropdown-toggle::after {
  margin-left: 0.25rem;
}
.admin-content .admin-topbar .topbar-right .user-dropdown .dropdown-toggle .user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}
.admin-content .admin-topbar .topbar-right .user-dropdown .dropdown-toggle .user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #212529;
}

/* User Menu Button */
.btn-user-menu {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.btn-user-menu:hover {
  background: #f8f9fa;
}
.btn-user-menu .user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
}
.btn-user-menu .user-info {
  text-align: left;
}
.btn-user-menu .user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.2;
}
.btn-user-menu .user-role {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 1.2;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-width: 180px;
}
.dropdown-menu .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}
.dropdown-menu .dropdown-item:hover {
  background: #f8f9fa;
}
.dropdown-menu .dropdown-item i {
  width: 1.25rem;
}
.dropdown-menu .dropdown-divider {
  margin: 0.5rem 0;
}

.admin-content .admin-page-content {
  flex: 1;
  padding: 1.5rem;
}
.admin-content .admin-main {
  flex: 1;
  padding: 1.5rem;
}
.admin-content .admin-footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.02);
  height: 50px;
}
.admin-content .admin-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.admin-content .admin-footer .footer-left {
  font-weight: 500;
  color: #495057;
}
.admin-content .admin-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-content .admin-footer .footer-right span {
  padding: 0.25rem 1rem;
  background: linear-gradient(135deg, #f9fafb, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #495057;
  font-family: "Fira Code", monospace;
  transition: all 0.2s ease-in-out;
}
.admin-content .admin-footer .footer-right span:hover {
  background: linear-gradient(135deg, #f8f9fa, #dee2e6);
  transform: translateY(-1px);
}

.admin-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}
.admin-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.admin-card .card-header {
  background: none;
  border-bottom: 1px solid #dee2e6;
  padding: 1.5rem;
}
.admin-card .card-header .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}
.admin-card .card-header .card-tools {
  display: flex;
  gap: 0.5rem;
}
.admin-card .card-header .card-tools .btn {
  font-size: 0.875rem;
  padding: 0.25rem 1rem;
}
.admin-card .card-body {
  padding: 1.5rem;
}

.stats-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
}
.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.stats-card .stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.stats-card .stats-icon.stats-primary {
  background: rgba(65, 88, 208, 0.1);
  color: #4158D0;
}
.stats-card .stats-icon.stats-success {
  background: rgba(13, 104, 50, 0.1);
  color: #0d6832;
}
.stats-card .stats-icon.stats-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}
.stats-card .stats-icon.stats-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.stats-card .stats-value {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.25rem;
}
.stats-card .stats-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}
.stats-card .stats-change {
  font-size: 0.75rem;
  font-weight: 500;
}
.stats-card .stats-change.positive {
  color: #0d6832;
}
.stats-card .stats-change.negative {
  color: #dc3545;
}
.stats-card .stats-change i {
  margin-right: 0.25rem;
}

.admin-table .table {
  font-size: 0.875rem;
}
.admin-table .table th {
  font-weight: 600;
  color: #495057;
  background: #f9fafb;
  border-bottom: 2px solid #dee2e6;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table .table td {
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
}
.admin-table .table .table-actions {
  width: 120px;
  text-align: right;
}
.admin-table .table .table-actions .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-left: 0.25rem;
}

.admin-form .form-label {
  font-weight: 500;
  color: #495057;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.admin-form .form-control,
.admin-form .form-select {
  font-size: 0.875rem;
  border-color: #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
}
.admin-form .form-control:focus,
.admin-form .form-select:focus {
  border-color: #4158D0;
  box-shadow: 0 0 0 0.2rem rgba(65, 88, 208, 0.25);
}
.admin-form .form-text {
  font-size: 0.75rem;
  color: #6c757d;
}

.btn-admin-primary {
  background: linear-gradient(135deg, #4158D0, #C850C0);
  border: none;
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.btn-admin-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

.btn-admin-outline {
  border: 1px solid #dee2e6;
  color: #495057;
  background: #ffffff;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}
.btn-admin-outline:hover {
  border-color: #4158D0;
  color: #4158D0;
  background: rgba(65, 88, 208, 0.05);
}

.admin-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 50rem;
}
.admin-badge.badge-status-active {
  background: rgba(13, 104, 50, 0.1);
  color: #0d6832;
}
.admin-badge.badge-status-inactive {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.admin-badge.badge-status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

[data-theme=dark] body {
  background-color: #1a1d21;
  color: #e2e8f0 !important;
}
[data-theme=dark] * {
  color: inherit;
}
[data-theme=dark] h1, [data-theme=dark] h2, [data-theme=dark] h3, [data-theme=dark] h4, [data-theme=dark] h5, [data-theme=dark] h6 {
  color: #e2e8f0 !important;
}
[data-theme=dark] p, [data-theme=dark] span, [data-theme=dark] div, [data-theme=dark] label, [data-theme=dark] small {
  color: #e2e8f0;
}
[data-theme=dark] .text-dark {
  color: #e2e8f0 !important;
}
[data-theme=dark] .text-muted {
  color: #a0aec0 !important;
}
[data-theme=dark] .text-body {
  color: #e2e8f0 !important;
}
[data-theme=dark] .text-secondary {
  color: #a0aec0 !important;
}
[data-theme=dark] .sidebar-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}
[data-theme=dark] .admin-sidebar {
  background: #2d3748;
  border-right-color: #4a5568;
}
[data-theme=dark] .admin-sidebar .sidebar-brand {
  color: #e2e8f0 !important;
  border-bottom-color: #4a5568;
}
[data-theme=dark] .admin-sidebar .sidebar-brand:hover {
  background: #4a5568;
  color: #4158D0 !important;
}
[data-theme=dark] .admin-sidebar .sidebar-brand .sidebar-brand-text {
  color: inherit;
}
[data-theme=dark] .admin-sidebar .sidebar-nav .nav-section-title {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-sidebar .sidebar-nav .nav-link {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-sidebar .sidebar-nav .nav-link:hover {
  background: #4a5568;
  color: #4158D0 !important;
}
[data-theme=dark] .admin-sidebar .sidebar-nav .nav-link.active {
  background: rgba(65, 88, 208, 0.2);
  color: #4158D0 !important;
}
[data-theme=dark] .admin-sidebar .sidebar-nav .nav-link .nav-text {
  color: inherit;
}
[data-theme=dark] .admin-sidebar .sidebar-footer {
  background: #2d3748;
  border-top-color: #4a5568;
}
[data-theme=dark] .admin-sidebar .sidebar-footer .user-info:hover {
  background: #4a5568;
}
[data-theme=dark] .admin-sidebar .sidebar-footer .user-info .user-name {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-sidebar .sidebar-footer .user-info .user-role {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-content {
  background: #1a1d21;
}
[data-theme=dark] .admin-content .admin-topbar {
  background: #2d3748;
  border-bottom-color: #4a5568;
  color: #e2e8f0;
}
[data-theme=dark] .admin-content .admin-topbar .sidebar-toggle {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .sidebar-toggle:hover {
  background: #4a5568;
  color: #4158D0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .breadcrumb .breadcrumb-item {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .breadcrumb .breadcrumb-item.active {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .breadcrumb .breadcrumb-item a {
  color: #4158D0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .breadcrumb .breadcrumb-separator {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .topbar-btn {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .topbar-btn:hover {
  background: #4a5568;
  color: #4158D0 !important;
}
[data-theme=dark] .admin-content .admin-topbar .topbar-btn:focus {
  box-shadow: 0 0 0 2px rgba(65, 88, 208, 0.25);
}
[data-theme=dark] .admin-content .admin-topbar .user-dropdown .dropdown-toggle:hover {
  background: #4a5568;
}
[data-theme=dark] .admin-content .admin-topbar .user-dropdown .dropdown-toggle .user-name {
  color: #e2e8f0 !important;
}
[data-theme=dark] .btn-user-menu:hover {
  background: #4a5568;
}
[data-theme=dark] .btn-user-menu .user-name {
  color: #e2e8f0 !important;
}
[data-theme=dark] .btn-user-menu .user-role {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-content .admin-footer {
  background: rgba(45, 55, 72, 0.95);
  border-top-color: #4a5568;
  color: #a0aec0;
}
[data-theme=dark] .admin-content .admin-footer .footer-left {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-content .admin-footer .footer-right {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-content .admin-footer .footer-right span {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  border-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-content .admin-footer .footer-right span:hover {
  background: linear-gradient(135deg, #4a5568, #a0aec0);
}
[data-theme=dark] .admin-card {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-card .card-header {
  border-bottom-color: #4a5568;
}
[data-theme=dark] .admin-card .card-header .card-title {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-card .card-body {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-card .card-body * {
  color: inherit;
}
[data-theme=dark] .stats-card {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .stats-card .stats-value {
  color: #e2e8f0 !important;
}
[data-theme=dark] .stats-card .stats-label {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-table .table {
  background: transparent;
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-table .table th {
  background: rgba(45, 55, 72, 0.6);
  color: #e2e8f0 !important;
  border-bottom-color: #4a5568;
  border-top: none;
}
[data-theme=dark] .admin-table .table td {
  border-bottom-color: rgba(74, 85, 104, 0.3);
  color: #e2e8f0 !important;
  background: transparent;
}
[data-theme=dark] .admin-table .table tbody tr {
  background: transparent;
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-table .table tbody tr:hover {
  background: rgba(74, 85, 104, 0.3);
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-table .table tbody tr:nth-child(odd) {
  background: rgba(45, 55, 72, 0.1);
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-table .table tbody tr:nth-child(odd):hover {
  background: rgba(74, 85, 104, 0.3);
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-table .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(45, 55, 72, 0.1);
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-table .table-hover tbody tr:hover {
  background-color: rgba(74, 85, 104, 0.3);
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-table .table-bordered {
  border-color: #4a5568;
}
[data-theme=dark] .admin-table .table-bordered th, [data-theme=dark] .admin-table .table-bordered td {
  border-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f0;
  --bs-table-striped-bg: rgba(45, 55, 72, 0.1);
  --bs-table-hover-bg: rgba(74, 85, 104, 0.3);
  --bs-table-hover-color: #e2e8f0;
  --bs-table-border-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .table thead th {
  color: #e2e8f0 !important;
}
[data-theme=dark] .table tbody td {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-form .form-label {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-form .form-control,
[data-theme=dark] .admin-form .form-select {
  background-color: rgba(45, 55, 72, 0.8) !important;
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-form .form-control:focus,
[data-theme=dark] .admin-form .form-select:focus {
  background-color: #2d3748 !important;
  border-color: #4158D0;
  color: #e2e8f0 !important;
  box-shadow: 0 0 0 0.2rem rgba(65, 88, 208, 0.25);
}
[data-theme=dark] .admin-form .form-control::placeholder,
[data-theme=dark] .admin-form .form-select::placeholder {
  color: #a0aec0 !important;
  opacity: 0.7;
}
[data-theme=dark] .admin-form .form-control:disabled,
[data-theme=dark] .admin-form .form-select:disabled {
  background-color: rgba(45, 55, 72, 0.5) !important;
  border-color: rgba(74, 85, 104, 0.3);
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-form .form-text {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-form .form-floating .form-control,
[data-theme=dark] .admin-form .form-floating .form-select {
  background-color: rgba(45, 55, 72, 0.8) !important;
}
[data-theme=dark] .admin-form .form-floating .form-control:focus,
[data-theme=dark] .admin-form .form-floating .form-select:focus {
  background-color: #2d3748 !important;
}
[data-theme=dark] .admin-form .form-floating .form-control:not(:placeholder-shown),
[data-theme=dark] .admin-form .form-floating .form-select:not(:placeholder-shown) {
  background-color: rgba(45, 55, 72, 0.9) !important;
}
[data-theme=dark] .admin-form .form-floating > label {
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-form .form-floating > .form-control:focus ~ label,
[data-theme=dark] .admin-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #4158D0 !important;
}
[data-theme=dark] .admin-form .form-check-input {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
}
[data-theme=dark] .admin-form .form-check-input:checked {
  background-color: #4158D0;
  border-color: #4158D0;
}
[data-theme=dark] .admin-form .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(65, 88, 208, 0.25);
}
[data-theme=dark] .admin-form .form-check-label {
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-form .input-group-text {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
  color: #a0aec0 !important;
}
[data-theme=dark] .admin-form .form-control[type=file] {
  background-color: rgba(45, 55, 72, 0.8) !important;
  color: #e2e8f0 !important;
}
[data-theme=dark] .admin-form .form-control[type=file]::file-selector-button {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
[data-theme=dark] .form-control,
[data-theme=dark] .form-select {
  background-color: rgba(45, 55, 72, 0.8) !important;
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
[data-theme=dark] .form-control:focus,
[data-theme=dark] .form-select:focus {
  background-color: #2d3748 !important;
  border-color: #4158D0;
  color: #e2e8f0 !important;
  box-shadow: 0 0 0 0.2rem rgba(65, 88, 208, 0.25);
}
[data-theme=dark] .form-control::placeholder,
[data-theme=dark] .form-select::placeholder {
  color: #a0aec0 !important;
  opacity: 0.7;
}
[data-theme=dark] .form-label {
  color: #e2e8f0 !important;
}
[data-theme=dark] .form-text {
  color: #a0aec0 !important;
}
[data-theme=dark] .form-check-input {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
}
[data-theme=dark] .form-check-input:checked {
  background-color: #4158D0;
  border-color: #4158D0;
}
[data-theme=dark] .form-check-label {
  color: #e2e8f0 !important;
}
[data-theme=dark] .input-group-text {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
  color: #a0aec0 !important;
}
[data-theme=dark] .dropdown-menu {
  background-color: #2d3748;
  border-color: #4a5568;
}
[data-theme=dark] .dropdown-menu .dropdown-item {
  color: #e2e8f0 !important;
}
[data-theme=dark] .dropdown-menu .dropdown-item:hover, [data-theme=dark] .dropdown-menu .dropdown-item:focus {
  background-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .dropdown-menu .dropdown-item.active {
  background-color: #4158D0;
  color: #ffffff !important;
}
[data-theme=dark] .dropdown-menu .dropdown-divider {
  border-top-color: #4a5568;
}
[data-theme=dark] .dropdown-menu .dropdown-header {
  color: #a0aec0 !important;
}
[data-theme=dark] .btn-admin-outline {
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
  background: rgba(45, 55, 72, 0.5);
}
[data-theme=dark] .btn-admin-outline:hover {
  border-color: #4158D0;
  color: #4158D0 !important;
  background: rgba(65, 88, 208, 0.1);
}
[data-theme=dark] .btn-outline-primary {
  color: #4158D0 !important;
  border-color: #4158D0;
}
[data-theme=dark] .btn-outline-primary:hover {
  color: #ffffff !important;
  background-color: #4158D0;
}
[data-theme=dark] .btn-outline-secondary {
  color: #e2e8f0 !important;
  border-color: rgba(74, 85, 104, 0.6);
}
[data-theme=dark] .btn-outline-secondary:hover {
  color: #e2e8f0 !important;
  background-color: #4a5568;
  border-color: #4a5568;
}
[data-theme=dark] .pagination .page-link {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
[data-theme=dark] .pagination .page-link:hover {
  background-color: #4a5568;
  border-color: #4158D0;
  color: #e2e8f0 !important;
}
[data-theme=dark] .pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(65, 88, 208, 0.25);
}
[data-theme=dark] .pagination .page-item.active .page-link {
  background-color: #4158D0;
  border-color: #4158D0;
  color: #ffffff !important;
}
[data-theme=dark] .pagination .page-item.disabled .page-link {
  background-color: rgba(45, 55, 72, 0.5);
  border-color: rgba(74, 85, 104, 0.3);
  color: #a0aec0 !important;
}
[data-theme=dark] .alert {
  border-color: rgba(74, 85, 104, 0.6);
}
[data-theme=dark] .alert.alert-primary {
  background-color: rgba(65, 88, 208, 0.1);
  border-color: rgba(65, 88, 208, 0.3);
  color: rgb(146.7721518987, 159.8734177215, 228.2278481013) !important;
}
[data-theme=dark] .alert.alert-secondary {
  background-color: rgba(45, 55, 72, 0.5);
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
[data-theme=dark] .alert.alert-success {
  background-color: rgba(13, 104, 50, 0.1);
  border-color: rgba(13, 104, 50, 0.3);
  color: rgb(24.3333333333, 194.6666666667, 93.5897435897) !important;
}
[data-theme=dark] .alert.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: rgb(211, 158.25, 0) !important;
}
[data-theme=dark] .alert.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: rgb(235.0632911392, 139.9367088608, 149.0506329114) !important;
}
[data-theme=dark] .alert.alert-info {
  background-color: rgba(10, 88, 202, 0.1);
  border-color: rgba(10, 88, 202, 0.3);
  color: rgb(68.2452830189, 140.358490566, 245.7547169811) !important;
}
[data-theme=dark] .alert.alert-light {
  background-color: rgba(45, 55, 72, 0.5);
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
[data-theme=dark] .alert.alert-dark {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
/* ==========================================================================
   Admin Modal Styles
   ========================================================================== */

/* Base modal enhancements */
.admin-modal .modal-content {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.admin-modal .modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-modal .modal-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-modal .modal-title i {
  font-size: 1.1em;
}

.admin-modal .modal-body {
  padding: 1.5rem;
}

.admin-modal .modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
}

/* Modal header variants */
.modal-header-primary {
  background: linear-gradient(135deg, #4158D0 0%, #5a6fd6 100%);
  color: #ffffff;
}

.modal-header-primary .btn-close {
  filter: brightness(0) invert(1);
}

.modal-header-info {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: #ffffff;
}

.modal-header-info .btn-close {
  filter: brightness(0) invert(1);
}

.modal-header-success {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #ffffff;
}

.modal-header-success .btn-close {
  filter: brightness(0) invert(1);
}

.modal-header-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #ffffff;
}

.modal-header-warning .btn-close {
  filter: brightness(0) invert(1);
}

.modal-header-danger {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: #ffffff;
}

.modal-header-danger .btn-close {
  filter: brightness(0) invert(1);
}

/* Modal footer button styles */
.admin-modal .btn-modal-cancel {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #4b5563;
}

.admin-modal .btn-modal-cancel:hover {
  background-color: #e5e7eb;
  border-color: #d1d5db;
  color: #374151;
}

/* Danger modal specific footer */
.admin-modal.modal-danger .modal-footer {
  background-color: #fef2f2;
}

.admin-modal.modal-danger .btn-modal-cancel {
  background-color: #ffffff;
  border-color: #fecaca;
  color: #991b1b;
}

.admin-modal.modal-danger .btn-modal-cancel:hover {
  background-color: #fef2f2;
}

/* Dark theme modal adjustments */
[data-theme=dark] .admin-modal .modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-theme=dark] .admin-modal .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme=dark] .admin-modal .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme=dark] .admin-modal .btn-modal-cancel {
  background-color: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

[data-theme=dark] .admin-modal .btn-modal-cancel:hover {
  background-color: #4b5563;
  border-color: #6b7280;
  color: #f3f4f6;
}

[data-theme=dark] .admin-modal.modal-danger .modal-footer {
  background-color: rgba(127, 29, 29, 0.2);
}

[data-theme=dark] .admin-modal.modal-danger .btn-modal-cancel {
  background-color: #374151;
  border-color: #7f1d1d;
  color: #fca5a5;
}

/* ==========================================================================
   End Admin Modal Styles
   ========================================================================== */

[data-theme=dark] .modal-content {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .modal-header {
  border-bottom-color: #4a5568;
}
[data-theme=dark] .modal-header .modal-title {
  color: #e2e8f0 !important;
}
[data-theme=dark] .modal-header .btn-close {
  filter: invert(1);
}
[data-theme=dark] .modal-body {
  color: #e2e8f0 !important;
}
[data-theme=dark] .modal-footer {
  border-top-color: #4a5568;
}
[data-theme=dark] .list-group-item {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
  color: #e2e8f0 !important;
}
[data-theme=dark] .list-group-item:hover {
  background-color: #4a5568;
  color: #e2e8f0 !important;
}
[data-theme=dark] .list-group-item.active {
  background-color: #4158D0;
  border-color: #4158D0;
  color: #ffffff !important;
}
[data-theme=dark] .badge.bg-secondary {
  background-color: #2d3748 !important;
  color: #e2e8f0 !important;
}
[data-theme=dark] .badge.bg-light {
  background-color: rgba(45, 55, 72, 0.8) !important;
  color: #e2e8f0 !important;
}
[data-theme=dark] .badge.bg-dark {
  background-color: rgba(45, 55, 72, 0.9) !important;
  color: #e2e8f0 !important;
}
[data-theme=dark] .nav-tabs .nav-link {
  color: #e2e8f0 !important;
  border-color: rgba(74, 85, 104, 0.6);
}
[data-theme=dark] .nav-tabs .nav-link:hover {
  border-color: #4158D0;
  color: #4158D0 !important;
}
[data-theme=dark] .nav-tabs .nav-link.active {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: #4158D0;
  color: #4158D0 !important;
}
[data-theme=dark] .nav-pills .nav-link {
  color: #e2e8f0 !important;
}
[data-theme=dark] .nav-pills .nav-link:hover {
  background-color: rgba(65, 88, 208, 0.1);
  color: #4158D0 !important;
}
[data-theme=dark] .nav-pills .nav-link.active {
  background-color: #4158D0;
  color: #ffffff !important;
}
[data-theme=dark] .accordion-item {
  background-color: rgba(45, 55, 72, 0.8);
  border-color: rgba(74, 85, 104, 0.6);
}
[data-theme=dark] .accordion-header .accordion-button {
  background-color: rgba(45, 55, 72, 0.8);
  color: #e2e8f0 !important;
  border-bottom-color: rgba(74, 85, 104, 0.6);
}
[data-theme=dark] .accordion-header .accordion-button:not(.collapsed) {
  background-color: rgba(65, 88, 208, 0.1);
  color: #4158D0 !important;
}
[data-theme=dark] .accordion-header .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(65, 88, 208, 0.25);
}
[data-theme=dark] .accordion-body {
  background-color: rgba(45, 55, 72, 0.8);
  color: #e2e8f0 !important;
}
[data-theme=dark] .progress {
  background-color: rgba(45, 55, 72, 0.5);
}
[data-theme=dark] .card *,
[data-theme=dark] .modal *,
[data-theme=dark] .dropdown-menu *,
[data-theme=dark] .alert *,
[data-theme=dark] .list-group *,
[data-theme=dark] .accordion *,
[data-theme=dark] .nav *,
[data-theme=dark] .pagination *,
[data-theme=dark] .table * {
  color: inherit;
}

@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-content {
    margin-left: 0;
  }
  .admin-topbar .topbar-left .breadcrumb {
    display: none;
  }
}
@media (max-width: 768px) {
  .admin-topbar .topbar-right .user-dropdown .dropdown-toggle .user-name {
    display: none;
  }
  .admin-page-content {
    padding: 1rem;
  }
  .stats-card {
    margin-bottom: 1rem;
  }
  .admin-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
  }
  .admin-footer .footer-left,
  .admin-footer .footer-right {
    font-size: 0.75rem;
  }
}
@media (max-width: 576px) {
  .admin-topbar {
    padding: 0 1rem;
  }
  .admin-topbar .topbar-right .topbar-item:not(:last-child) {
    display: none;
  }
  .admin-page-content {
    padding: 0.5rem;
  }
  .admin-table .table {
    font-size: 0.75rem;
  }
  .admin-footer {
    padding: 0.5rem 1rem;
  }
  .admin-footer .footer-right span {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
}
@media print {
  .admin-sidebar,
  .admin-topbar,
  .admin-footer,
  .btn,
  .dropdown {
    display: none !important;
  }
  .admin-content {
    margin-left: 0;
  }
  .admin-card {
    border: 1px solid #dee2e6;
    box-shadow: none;
  }
}
.info-item {
  border-bottom: 1px solid #f8f9fa;
  padding-bottom: 0.75rem;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  display: block;
  font-weight: 600;
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.info-value {
  color: #212529;
  font-size: 0.9rem;
}

.info-value code {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

.user-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  border: 4px solid #fff;
}

.sticky-top {
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
  z-index: 1001;
}

/* ============================================
   MODERN ENHANCEMENTS & TOOLTIP STYLES
   ============================================ */

/* Custom Tooltip Styling */
.tooltip {
  --bs-tooltip-bg: #1e293b;
  --bs-tooltip-color: #ffffff;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-padding-x: 0.75rem;
  --bs-tooltip-padding-y: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tooltip .tooltip-inner {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.875rem;
  max-width: 250px;
}

.tooltip .tooltip-arrow::before {
  border-top-color: #1e293b;
  border-bottom-color: #1e293b;
}

/* Icon Buttons for Table Actions */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-icon:hover::before {
  opacity: 0.08;
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-icon:active {
  transform: translateY(0);
}

.btn-icon i {
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Button Group Improvements */
.btn-group-actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.btn-group-actions .btn {
  border-radius: 0.5rem !important;
}

/* Enhanced Button Styles */
.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #4158D0 0%, #5a6fd6 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(65, 88, 208, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3548c8 0%, #4a5fc8 100%);
  box-shadow: 0 4px 12px rgba(65, 88, 208, 0.35);
}

.btn-outline-primary:hover {
  box-shadow: 0 4px 12px rgba(65, 88, 208, 0.2);
}

.btn-outline-secondary:hover {
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.15);
}

.btn-outline-success:hover {
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.btn-outline-warning:hover {
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
}

.btn-outline-danger:hover {
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.btn-outline-info:hover {
  box-shadow: 0 4px 12px rgba(13, 202, 240, 0.2);
}

/* Modern Card Enhancements */
.card {
  border: none;
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.card-header h5,
.card-header h6 {
  font-size: 0.85rem;
  margin: 0;
}

.card-body {
  padding: 1rem;
}

/* Stats Card Modern Style */
.stats-card-modern {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-card-modern .card-body {
  padding: 0;
}

.stats-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.stats-card-modern:hover::before {
  opacity: 1;
}

.stats-card-modern h2 {
  font-size: 1.5rem;
}

.stats-card-modern p {
  font-size: 0.7rem;
}

/* Icon Box Styles */
.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.icon-box-primary {
  background: rgba(65, 88, 208, 0.1);
  color: #4158D0;
}

.icon-box-success {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.icon-box-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #cc9a00;
}

.icon-box-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.icon-box-info {
  background: rgba(13, 202, 240, 0.1);
  color: #0dcaf0;
}

/* Enhanced Table Styles */
.table-modern {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}

.table-modern thead th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.table-modern tbody td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover td {
  background: #f8fafc;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

/* Badge Improvements */
.badge {
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status i {
  font-size: 0.875rem;
}

.badge-status-active {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.badge-status-suspended {
  background: rgba(255, 193, 7, 0.15);
  color: #cc9a00;
}

.badge-status-inactive {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.page-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.page-header-subtitle {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Quick Actions Card */
.quick-actions-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
}

.quick-actions-card .card-header {
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
}

/* Form Enhancements */
.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #4158D0;
  box-shadow: 0 0 0 3px rgba(65, 88, 208, 0.1);
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-text {
  color: #6b7280;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.section-divider span {
  padding: 0 1rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: #64748b;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.slide-in {
  animation: slideIn 0.3s ease forwards;
}

/* Alert Enhancements */
.alert {
  border-radius: 0.75rem;
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert i:first-child {
  font-size: 1.125rem;
  margin-top: 0.125rem;
}

.alert-success {
  background: rgba(25, 135, 84, 0.1);
  color: #166534;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #991b1b;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #92400e;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}

/* Dark Mode Tooltip Enhancement */
[data-theme=dark] .tooltip .tooltip-inner {
  background: linear-gradient(135deg, #374151, #4b5563);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme=dark] .tooltip .tooltip-arrow::before {
  border-top-color: #374151;
  border-bottom-color: #374151;
}

[data-theme=dark] .card {
  background: #1e293b;
  border: 1px solid #334155;
}

[data-theme=dark] .card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme=dark] .table-modern thead th {
  background: rgba(51, 65, 85, 0.5);
  border-bottom-color: #334155;
  color: #94a3b8;
}

[data-theme=dark] .table-modern tbody td {
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

[data-theme=dark] .table-modern tbody tr:hover td {
  background: rgba(51, 65, 85, 0.3);
}

[data-theme=dark] .icon-box-primary {
  background: rgba(65, 88, 208, 0.2);
}

[data-theme=dark] .icon-box-success {
  background: rgba(25, 135, 84, 0.2);
}

[data-theme=dark] .icon-box-warning {
  background: rgba(255, 193, 7, 0.2);
}

[data-theme=dark] .icon-box-danger {
  background: rgba(220, 53, 69, 0.2);
}

[data-theme=dark] .icon-box-info {
  background: rgba(13, 202, 240, 0.2);
}

[data-theme=dark] .page-header {
  border-bottom-color: #334155;
}

[data-theme=dark] .page-header-title {
  color: #f1f5f9;
}

[data-theme=dark] .page-header-subtitle {
  color: #94a3b8;
}

[data-theme=dark] .form-control, [data-theme=dark] .form-select {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme=dark] .form-control:focus, [data-theme=dark] .form-select:focus {
  border-color: #4158D0;
  background: #1e293b;
}

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

[data-theme=dark] .section-divider::before,
[data-theme=dark] .section-divider::after {
  background: #334155;
}

[data-theme=dark] .section-divider span {
  color: #94a3b8;
}

[data-theme=dark] .quick-actions-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme=dark] .quick-actions-card .card-header {
  border-bottom-color: #334155;
}

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

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

[data-theme=dark] .empty-state-text {
  color: #94a3b8;
}

[data-theme=dark] .alert-success {
  background: rgba(25, 135, 84, 0.15);
  color: #4ade80;
}

[data-theme=dark] .alert-danger {
  background: rgba(220, 53, 69, 0.15);
  color: #f87171;
}

[data-theme=dark] .alert-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #fbbf24;
}

[data-theme=dark] .alert-info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

[data-theme=dark] .badge-status-active {
  background: rgba(25, 135, 84, 0.2);
  color: #4ade80;
}

[data-theme=dark] .badge-status-suspended {
  background: rgba(255, 193, 7, 0.2);
  color: #fbbf24;
}

[data-theme=dark] .badge-status-inactive {
  background: rgba(220, 53, 69, 0.2);
  color: #f87171;
}

/* ==========================================================================
   FILE MANAGER STYLES
   ========================================================================== */

/* Folder Sidebar */
.folder-sidebar {
  border-radius: 0.75rem;
  overflow: hidden;
}

.folder-sidebar .card-header {
  border-bottom: 1px solid #e2e8f0;
}

.folder-list {
  max-height: 300px;
  overflow-y: auto;
}

.folder-list-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 0.25rem;
}

.folder-list-item:hover {
  background: #f8fafc;
  color: #4158D0;
}

.folder-list-item:hover .folder-icon {
  transform: scale(1.05);
}

.folder-list-item.active {
  background: linear-gradient(135deg, rgba(65, 88, 208, 0.08) 0%, rgba(200, 80, 192, 0.08) 100%);
  color: #4158D0;
  border-left: 3px solid #4158D0;
}

.folder-list-item.active .folder-name {
  font-weight: 600;
}

.folder-list-item.active .folder-icon {
  background: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
}

.folder-list-item .folder-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.folder-list-item .folder-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.folder-list-item .folder-name {
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.folder-list-item .folder-count {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.2;
}

.folder-list-item .folder-actions {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  margin-left: auto;
}

.folder-list-item:hover .folder-actions,
.folder-list-item .folder-actions.show,
.folder-list-item .folder-actions:has(.dropdown-menu.show) {
  opacity: 1;
  visibility: visible;
}

.folder-list-item .folder-menu-btn {
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280 !important;
  text-decoration: none !important;
}

.folder-list-item .folder-menu-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #374151 !important;
}

.folder-list-item .folder-actions .dropdown-menu {
  position: absolute;
  right: 0;
  z-index: 1050;
  min-width: 140px;
}

/* File row selection styles */
.file-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.file-row:hover {
  background-color: #f8fafc;
}

.file-row.selected {
  background-color: rgba(65, 88, 208, 0.08) !important;
}

.file-row.selected td {
  border-color: rgba(65, 88, 208, 0.2);
}

/* Legacy support */
.folder-sidebar .list-group-item {
  border: none;
  border-radius: 0.375rem;
  margin-bottom: 0.125rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.folder-sidebar .list-group-item:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

.folder-sidebar .list-group-item.active {
  background: linear-gradient(135deg, rgba(65, 88, 208, 0.1) 0%, rgba(200, 80, 192, 0.1) 100%);
  color: #4158D0;
  font-weight: 600;
  border-left: 3px solid #4158D0;
}

/* Compact list-group for file manager sidebar */
.list-group-flush .list-group-item {
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
}

/* Folder Empty State */
.folder-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}

.folder-empty i {
  font-size: 2.5rem;
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

/* File Drop Zone */
.file-drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: #4158D0;
  background: linear-gradient(135deg, rgba(65, 88, 208, 0.05) 0%, rgba(200, 80, 192, 0.05) 100%);
  transform: scale(1.01);
}

.file-drop-zone.drag-over {
  box-shadow: 0 0 0 4px rgba(65, 88, 208, 0.1);
}

.file-drop-zone .drop-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #ffffff;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.file-drop-zone:hover .drop-icon {
  transform: translateY(-4px);
}

.file-drop-zone .drop-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.file-drop-zone .drop-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

.file-drop-zone .drop-formats {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* File List Item - Selected Files */
.selected-files-list .list-group-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.selected-files-list .file-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4158D0 0%, #5a6fd6 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.selected-files-list .file-info {
  flex: 1;
  min-width: 0;
}

.selected-files-list .file-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.125rem;
}

.selected-files-list .file-size {
  font-size: 0.75rem;
  color: #6b7280;
}

.selected-files-list .file-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #9ca3af;
  transition: all 0.2s ease;
  cursor: pointer;
}

.selected-files-list .file-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Upload Progress */
.upload-progress-container {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.upload-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.upload-progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.upload-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.upload-progress-text .progress-status {
  color: #4158D0;
  font-weight: 500;
}

.upload-progress-text .progress-percent {
  color: #6b7280;
}

/* File Table Row */
.file-row {
  transition: all 0.15s ease;
}

.file-row:hover {
  background: #f8fafc;
}

.file-row.selected {
  background: rgba(65, 88, 208, 0.05);
}

.file-row .file-icon-cell {
  width: 36px;
  text-align: center;
}

.file-row .file-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.file-row .file-type-icon.icon-document {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.file-row .file-type-icon.icon-image {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.file-row .file-type-icon.icon-video {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.file-row .file-type-icon.icon-audio {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.file-row .file-type-icon.icon-archive {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.file-row .file-type-icon.icon-code {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.file-row .file-type-icon.icon-default {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.toast-notification {
  min-width: 300px;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.75rem;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid;
}

.toast-notification.toast-success {
  border-left-color: #10b981;
}

.toast-notification.toast-error {
  border-left-color: #ef4444;
}

.toast-notification.toast-warning {
  border-left-color: #f59e0b;
}

.toast-notification.toast-info {
  border-left-color: #3b82f6;
}

.toast-notification .toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.toast-notification .toast-content {
  flex: 1;
}

.toast-notification .toast-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.toast-notification .toast-message {
  font-size: 0.875rem;
  color: #6b7280;
}

.toast-notification .toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.toast-notification .toast-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast-notification.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

/* Delete Confirmation Modal */
.modal-delete-preview {
  background: #fef2f2;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.modal-delete-preview i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.modal-delete-preview .file-name {
  font-weight: 600;
  color: #1e293b;
}

/* Share Link Display */
.share-link-display {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #86efac;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.share-link-display .share-url-input {
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 0.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
}

.share-link-display .copy-success {
  color: #10b981;
}

/* File Preview Modal */
.preview-container {
  background: #000000;
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.preview-container iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

/* Dark mode file manager styles */
[data-theme=dark] .folder-sidebar .list-group-item:hover {
  background: #334155;
}

[data-theme=dark] .folder-sidebar .list-group-item.active {
  background: rgba(65, 88, 208, 0.2);
}

[data-theme=dark] .file-drop-zone {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #475569;
}

[data-theme=dark] .file-drop-zone:hover,
[data-theme=dark] .file-drop-zone.drag-over {
  border-color: #4158D0;
  background: linear-gradient(135deg, rgba(65, 88, 208, 0.1) 0%, rgba(200, 80, 192, 0.1) 100%);
}

[data-theme=dark] .file-drop-zone .drop-title {
  color: #f1f5f9;
}

[data-theme=dark] .selected-files-list .list-group-item {
  background: #334155;
  border-color: #475569;
}

[data-theme=dark] .upload-progress-container {
  background: #334155;
}

[data-theme=dark] .file-row:hover {
  background: rgba(51, 65, 85, 0.5);
}

[data-theme=dark] .file-row.selected {
  background: rgba(65, 88, 208, 0.15);
}

[data-theme=dark] .toast-notification {
  background: #1e293b;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme=dark] .toast-notification .toast-message {
  color: #94a3b8;
}

[data-theme=dark] .modal-delete-preview {
  background: rgba(127, 29, 29, 0.2);
}

[data-theme=dark] .share-link-display {
  background: rgba(6, 78, 59, 0.2);
  border-color: #065f46;
}

[data-theme=dark] .share-link-display .share-url-input {
  background: #1e293b;
  border-color: #065f46;
  color: #f1f5f9;
}

[data-theme=dark] .preview-container {
  background: #0f172a;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-left: 4px;
}
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}
.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}
.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}
.empty-state-text {
    color: #64748b;
    margin-bottom: 1.5rem;
}


.extra-small {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

