html {
  font-size: 14px;
  background: #000000;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  height: 100%;
  background: #000000;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: #ffffff;
  height: 100%;
  overflow: hidden;
}

/* Login Page Styles - Dark Theme Modern Design */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(252, 6, 14, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(252, 6, 14, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 48px 40px;
  box-shadow: 
    0 0 0 1px rgba(252, 6, 14, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.8),
    0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
  border-color: #1f1f1f;
  box-shadow: 
    0 0 0 1px rgba(252, 6, 14, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.9),
    0 0 1px rgba(255, 255, 255, 0.08);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-bottom: 32px;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.login-logo:hover img {
  filter: brightness(1);
}

.login-title {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.login-form {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #a0a0a0;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: #111111;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  font-size: 15px;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  font-family: inherit;
}

.form-input::placeholder {
  color: #4a4a4a;
}

.form-input:hover {
  border-color: #2a2a2a;
  background: #151515;
}

.form-input:focus {
  outline: none;
  border-color: #FC060E;
  background: #151515;
  box-shadow: 
    0 0 0 3px rgba(252, 6, 14, 0.1),
    0 0 0 1px #FC060E;
}

.password-toggle {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #6a6a6a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.password-toggle:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.eye-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FC060E;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px 4px 0 0;
}

.form-input:focus + .input-focus-border {
  width: 100%;
}

.form-error {
  display: block;
  color: #FC060E;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: #FC060E;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: #d4050d;
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(252, 6, 14, 0.4),
    0 0 0 1px rgba(252, 6, 14, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 6px rgba(252, 6, 14, 0.3),
    0 0 0 1px rgba(252, 6, 14, 0.2);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(252, 6, 14, 0.2),
    0 4px 12px rgba(252, 6, 14, 0.4);
}

.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(252, 6, 14, 0.1);
  border: 1px solid rgba(252, 6, 14, 0.3);
  border-radius: 4px;
  margin-bottom: 24px;
  color: #FC060E;
  backdrop-filter: blur(10px);
}

.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke-width: 2;
}

.alert-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

/* Dashboard Styles - Dark Theme Modern Design */
.dashboard-container {
  display: flex;
  height: 100vh;
  background: #000000;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: #0a0a0a;
  border-left: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  top: 0;
  right: 0;
  z-index: 1000;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #1a1a1a;
}

.sidebar-logo img {
  max-width: 140px;
  width: 100%;
  height: auto;
  filter: brightness(0.95);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

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

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 3px solid transparent;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border-right-color: rgba(252, 6, 14, 0.5);
}

.nav-link.active {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.08);
  border-right-color: #FC060E;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #FC060E;
  border-radius: 4px 0 0 4px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  flex-shrink: 0;
}

.nav-link-parent {
  position: relative;
}

.nav-arrow {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  margin-right: auto;
  transition: transform 0.2s ease;
}

.nav-item-parent.active .nav-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-submenu.expanded {
  max-height: 200px;
}

.nav-subitem {
  margin: 0;
}

.nav-sublink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 44px;
  color: #6a6a6a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 3px solid transparent;
  position: relative;
}

.nav-sublink:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border-right-color: rgba(252, 6, 14, 0.5);
}

.nav-sublink.active {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.08);
  border-right-color: #FC060E;
}

.nav-sublink-parent {
  position: relative;
}

.nav-arrow-nested {
  width: 14px;
  height: 14px;
  margin-right: auto;
  margin-left: 8px;
}

.nav-nested-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
  margin: 0;
  list-style: none;
  background: rgba(0, 0, 0, 0.2);
}

.nav-nested-submenu.expanded {
  max-height: 100px;
}

.nav-nested-item {
  margin: 0;
}

.nav-nested-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 64px;
  color: #6a6a6a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 3px solid transparent;
  position: relative;
}

.nav-nested-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border-right-color: rgba(252, 6, 14, 0.5);
}

.nav-nested-link.active {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.08);
  border-right-color: #FC060E;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #1a1a1a;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.logout-btn:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
  border-color: rgba(252, 6, 14, 0.3);
}

.logout-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-right: 280px;
  height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide Scrollbar for main-content */
.main-content::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Top Toolbar */
.top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

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

.toolbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

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

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.toolbar-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: #2a2a2a;
}

.toolbar-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Theme Toggle Group */
.theme-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #111111;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 4px;
}

.theme-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #6a6a6a;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.theme-btn.active {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.15);
}

.theme-btn.active:hover {
  background: rgba(252, 6, 14, 0.2);
}

/* Profile Button */
.profile-btn {
  border-color: #1a1a1a;
}

.profile-btn:hover {
  border-color: #FC060E;
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

.profile-name {
  font-size: 14px;
  font-weight: 500;
}

/* Logout Button */
.logout-btn {
  border-color: rgba(252, 6, 14, 0.3);
  color: #a0a0a0;
}

.logout-btn:hover {
  border-color: #FC060E;
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

.content-wrapper {
  padding: 16px 12px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Hide Scrollbar but keep scrolling functionality */
.content-wrapper::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.content-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.content-wrapper::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Firefox - Hide Scrollbar */
.content-wrapper {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Dashboard Page */
.dashboard-page {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.page-header {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 11px;
  color: #6a6a6a;
  margin: 0;
  line-height: 1.3;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 0;
  min-height: 0;
  box-sizing: border-box;
  margin-top: 0;
}

.welcome-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 32px;
  box-shadow: 
    0 0 0 1px rgba(252, 6, 14, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.welcome-card h2 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.welcome-card p {
  font-size: 15px;
  color: #a0a0a0;
  margin: 0;
  line-height: 1.6;
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar,
.grid-body::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track,
.grid-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.grid-body::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.grid-body::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

/* Video Groups Grid Styles */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.header-left {
  flex: 1;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-add,
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #FC060E 0%, #d4050d 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  height: 38px;
  box-shadow: 
    0 2px 8px rgba(252, 6, 14, 0.3),
    0 0 0 1px rgba(252, 6, 14, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-add::before,
.btn-export::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-add:hover::before,
.btn-export:hover::before {
  left: 100%;
}

.btn-add:hover,
.btn-export:hover {
  background: linear-gradient(135deg, #d4050d 0%, #b8040b 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 16px rgba(252, 6, 14, 0.5),
    0 0 0 1px rgba(252, 6, 14, 0.2);
}

.btn-add:active,
.btn-export:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(252, 6, 14, 0.3),
    0 0 0 1px rgba(252, 6, 14, 0.1);
}

.btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Search Box */
.search-container {
  margin: 0 0 8px 0;
  flex-shrink: 0;
  padding: 0;
}

.search-box {
  position: relative;
  width: 280px;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6a6a6a;
  stroke-width: 2;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s ease;
}

.search-input {
  width: 100%;
  padding: 8px 40px 8px 12px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  font-size: 13px;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  height: 38px;
}

.search-input::placeholder {
  color: #4a4a4a;
}

.search-input:hover {
  border-color: #2a2a2a;
  background: #111111;
}

.search-input:focus {
  outline: none;
  border-color: #FC060E;
  background: #111111;
  box-shadow: 0 0 0 3px rgba(252, 6, 14, 0.1);
}

.search-input:focus ~ .search-icon {
  color: #FC060E;
}

/* Grid Styles */
.grid-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.grid-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(252, 6, 14, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.grid-header {
  display: grid;
  grid-template-columns: 2fr 2fr 120px;
  background: #111111;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

/* VideoGroups grid - 4 columns (emoji, title, parent, actions) */
.videogroups-grid .grid-header,
.videogroups-grid .grid-row {
  grid-template-columns: 80px 2fr 1.5fr 1.2fr 140px;
}

/* Users grid - 7 columns */
.users-grid .grid-header,
.users-grid .grid-row {
  grid-template-columns: 1.5fr 1.8fr 1.2fr 1fr 1.2fr 1fr 140px;
}

/* Videos grid - 8 columns (with poster) */
.videos-grid .grid-header,
.videos-grid .grid-row {
  grid-template-columns: 80px 2fr 1.5fr 1.5fr 1fr 1.2fr 1.2fr 140px;
}

/* Basics grid - 3 columns (Countries, Languages) */
.basics-grid .grid-header,
.basics-grid .grid-row {
  grid-template-columns: 120px 2fr 140px;
}

/* Tags grid - 4 columns */
.tags-grid .grid-header,
.tags-grid .grid-row {
  grid-template-columns: 2fr 1.5fr 1.2fr 140px;
}

/* Ads grid - 6 columns */
.ads-grid .grid-header,
.ads-grid .grid-row {
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr 1.2fr 140px;
}

/* Episodes grid - 7 columns */
.episodes-grid .grid-header,
.episodes-grid .grid-row {
  grid-template-columns: 80px 2fr 1fr 1fr 1fr 1.2fr 140px;
}

/* Packages grid - 6 columns (title, price, coin, type, status, actions) */
.packages-grid .grid-header,
.packages-grid .grid-row {
  grid-template-columns: 2fr 1.8fr 1.2fr 1.2fr 1.3fr 140px;
}

/* Tickets grid - 5 columns (title, status, priority, created date, actions) */
.tickets-grid .grid-header,
.tickets-grid .grid-row {
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr 140px;
}

/* User Reports grid - 7 columns (name, lastname, gender, register date, last login, internet, phone) */
.user-reports-grid .grid-header,
.user-reports-grid .grid-row {
  grid-template-columns: 1.2fr 1.5fr 1fr 1.3fr 1.5fr 1.2fr 1.3fr;
}

/* Video Poster Styles */
.poster-cell {
  padding: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-poster {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #1a1a1a;
  background: #0a0a0a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-poster:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-color: #FC060E;
}

.video-poster-placeholder {
  width: 60px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  color: #666666;
  font-size: 10px;
  text-align: center;
  padding: 4px;
  line-height: 1.2;
}

.grid-header-cell {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
}

.actions-header {
  text-align: center;
}

.grid-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}

.grid-row {
  display: grid;
  grid-template-columns: 2fr 2fr 120px;
  border-bottom: 1px solid #1a1a1a;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.grid-row:last-child {
  border-bottom: none;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.grid-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.grid-cell {
  padding: 8px 16px;
  font-size: 13px;
  color: #ffffff;
  text-align: right;
  display: flex;
  align-items: center;
  word-break: break-word;
  line-height: 1.4;
  min-height: 28px;
}

.actions-cell {
  justify-content: center;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.edit-btn {
  color: #6a6a6a;
}

.edit-btn:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

.delete-btn {
  color: #6a6a6a;
}

.delete-btn:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

.view-btn {
  color: #6a6a6a;
}

.view-btn:hover {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.toggle-btn {
  color: #6a6a6a;
}

.toggle-btn:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

.toggle-btn.active {
  color: #10b981;
}

.toggle-btn.active:hover {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}

.action-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* Status Badge */
.gender-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  min-width: 50px;
}

.gender-male {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.gender-female {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.internet-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Loading, Empty, Error States */
.loading-state,
.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #6a6a6a;
  text-align: center;
  margin: 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #1a1a1a;
  border-top-color: #FC060E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-icon,
.error-icon {
  width: 48px;
  height: 48px;
  color: #6a6a6a;
  margin-bottom: 16px;
  stroke-width: 1.5;
}

.loading-state p,
.empty-state p,
.error-state p {
  margin: 0;
  font-size: 14px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 0 0 0;
  margin: 8px 0 0 0;
  border-top: 1px solid #1a1a1a;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover:not(:disabled) {
  background: #111111;
  border-color: #FC060E;
  color: #FC060E;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-page:hover {
  background: #111111;
  border-color: #2a2a2a;
}

.pagination-page.active {
  background: #FC060E;
  border-color: #FC060E;
  color: #ffffff;
}

.pagination-dots {
  padding: 0 8px;
  color: #6a6a6a;
  font-size: 14px;
}

/* Light Theme Styles */
body.light-theme {
  background: #f5f5f5;
  color: #1a1a1a;
}

body.light-theme .dashboard-container {
  background: #f5f5f5;
}

body.light-theme .sidebar {
  background: #ffffff;
  border-left-color: #e0e0e0;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .sidebar-header {
  border-bottom-color: #e0e0e0;
}

body.light-theme .nav-link {
  color: #666666;
}

body.light-theme .nav-link:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.05);
}

body.light-theme .nav-link.active {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

body.light-theme .main-content {
  background: #f5f5f5;
}

body.light-theme .top-toolbar {
  background: #ffffff;
  border-bottom-color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .toolbar-title {
  color: #1a1a1a;
}

body.light-theme .toolbar-btn {
  border-color: #e0e0e0;
  color: #666666;
}

body.light-theme .toolbar-btn:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.05);
  border-color: #FC060E;
}

body.light-theme .theme-toggle-group {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

body.light-theme .theme-btn {
  color: #666666;
}

body.light-theme .theme-btn:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.05);
}

body.light-theme .theme-btn.active {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.15);
}

body.light-theme .welcome-card {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-theme .welcome-card h2 {
  color: #1a1a1a;
}

body.light-theme .welcome-card p {
  color: #666666;
}

body.light-theme .page-title {
  color: #1a1a1a;
}

body.light-theme .page-subtitle {
  color: #666666;
}

body.light-theme .nav-sublink {
  color: #666666;
}

body.light-theme .nav-sublink:hover {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.05);
}

body.light-theme .nav-sublink.active {
  color: #FC060E;
  background: rgba(252, 6, 14, 0.1);
}

body.light-theme .status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

body.light-theme .status-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

body.light-theme .toggle-btn.active {
  color: #059669;
}

body.light-theme .toggle-btn.active:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Video Title Link */
.video-title-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-title-link:hover {
  color: #FC060E;
  text-decoration: underline;
}

body.light-theme .video-title-link {
  color: #1a1a1a;
}

body.light-theme .video-title-link:hover {
  color: #FC060E;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #FC060E;
}

.back-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

body.light-theme .back-link {
  color: #666666;
}

body.light-theme .back-link:hover {
  color: #FC060E;
}

/* Text Danger */
.text-danger {
  color: #ef4444;
}

body.light-theme .text-danger {
  color: #dc2626;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(252, 6, 14, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: #a0a0a0;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-close-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  position: relative;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding: 16px 20px;
  border-top: 1px solid #1a1a1a;
}

.btn-secondary {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  color: #a0a0a0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  color: #ffffff;
  border-color: #2a2a2a;
  background: rgba(255, 255, 255, 0.05);
}

/* Modal Buttons - Minimal Style */
.modal-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  min-width: 80px;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn-cancel {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #a0a0a0;
}

.modal-btn-cancel:hover:not(:disabled) {
  color: #ffffff;
  border-color: #3a3a3a;
  background: rgba(255, 255, 255, 0.05);
}

.modal-btn-confirm {
  background: #FC060E;
  color: #ffffff;
}

.modal-btn-confirm:hover:not(:disabled) {
  background: #d4050d;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(252, 6, 14, 0.3);
}

.modal-btn-confirm:active:not(:disabled) {
  transform: translateY(0);
}

body.light-theme .modal-btn-cancel {
  border-color: #e0e0e0;
  color: #666666;
}

body.light-theme .modal-btn-cancel:hover:not(:disabled) {
  color: #1a1a1a;
  border-color: #d0d0d0;
  background: rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #a0a0a0;
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: #111111;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  font-size: 14px;
  color: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-input::placeholder {
  color: #4a4a4a;
}

.form-input:hover {
  border-color: #2a2a2a;
  background: #151515;
}

.form-input:focus {
  outline: none;
  border-color: #FC060E;
  background: #151515;
  box-shadow: 0 0 0 3px rgba(252, 6, 14, 0.1);
}

.form-input option {
  background: #0a0a0a;
  color: #ffffff;
}

.form-error {
  display: block;
  color: #FC060E;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

/* File Upload Styles */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-upload-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #111111;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-height: 44px;
}

.file-upload-wrapper:hover .file-upload-info {
  border-color: #2a2a2a;
  background: #151515;
}

.file-upload-wrapper:has(.file-input:focus) .file-upload-info {
  border-color: #FC060E;
  background: #151515;
  box-shadow: 0 0 0 3px rgba(252, 6, 14, 0.1);
}

.file-icon {
  width: 20px;
  height: 20px;
  color: #a0a0a0;
  flex-shrink: 0;
}

.file-name {
  color: #a0a0a0;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-wrapper:has(.file-input:valid) .file-name {
  color: #ffffff;
}

.form-hint {
  display: block;
  color: #6a6a6a;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 400;
}

body.light-theme .file-upload-info {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

body.light-theme .file-upload-wrapper:hover .file-upload-info {
  border-color: #d0d0d0;
  background: #ffffff;
}

body.light-theme .file-upload-wrapper:has(.file-input:focus) .file-upload-info {
  border-color: #FC060E;
  background: #ffffff;
}

body.light-theme .file-icon {
  color: #666666;
}

body.light-theme .file-name {
  color: #666666;
}

body.light-theme .file-upload-wrapper:has(.file-input:valid) .file-name {
  color: #1a1a1a;
}

body.light-theme .form-hint {
  color: #999999;
}

/* Upload Progress Styles */
.upload-progress-container {
  margin-top: 20px;
  padding: 16px;
  background: #111111;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

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

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.upload-progress-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.upload-progress-percent {
  color: #FC060E;
  font-size: 14px;
  font-weight: 600;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FC060E 0%, #ff3d45 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.upload-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6a6a6a;
}

.upload-speed {
  color: #a0a0a0;
  font-weight: 500;
}

body.light-theme .upload-progress-container {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

body.light-theme .upload-progress-text {
  color: #1a1a1a;
}

body.light-theme .upload-progress-bar {
  background: #e0e0e0;
}

body.light-theme .upload-progress-info {
  color: #999999;
}

body.light-theme .upload-speed {
  color: #666666;
}

/* Modal Episode Styles */
.modal-episode {
  max-width: 600px;
}

/* Modal Ad Styles - Wider and more compact */
.modal-ad {
  max-width: 800px !important;
  max-height: 85vh !important;
}

.modal-ad .modal-body {
  padding: 24px;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
}

.modal-ad .ad-form {
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-ad .form-group {
  margin-bottom: 16px;
}

.modal-ad .form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #e0e0e0;
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-ad .form-input {
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: auto;
  min-height: 42px;
}

.modal-ad .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.modal-ad .form-group-half {
  margin-bottom: 16px;
}

.modal-ad .form-hint {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  display: block;
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-ad .form-error {
  font-size: 12px;
  margin-top: 4px;
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-ad .file-upload-wrapper {
  margin-top: 0;
}

.modal-ad .form-checkbox {
  font-size: 14px;
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-ad .modal-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
}

/* Light theme for modal ad */
body.light-theme .modal-ad {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-theme .modal-ad .form-label {
  color: #1a1a1a;
}

body.light-theme .modal-ad .form-input {
  background: #f5f5f5;
  border-color: #d0d0d0;
  color: #1a1a1a;
}

body.light-theme .modal-ad .form-input:focus {
  background: #ffffff;
  border-color: #FC060E;
}

body.light-theme .modal-ad .form-hint {
  color: #666;
}

body.light-theme .modal-ad .modal-actions {
  border-top-color: #e0e0e0;
}

/* Persian Date Input Styling */
.modal-ad .persian-date-input {
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  text-align: right;
  font-size: 14px;
}

.modal-ad .persian-date-input::placeholder {
  color: #666;
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-theme .modal-ad .persian-date-input::placeholder {
  color: #999;
}

.modal-ad .datetime-input::-webkit-calendar-picker-indicator {
  background-color: #FC060E;
  color: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  padding: 4px;
  margin-left: 8px;
  filter: invert(0);
}

.modal-ad .datetime-input::-webkit-calendar-picker-indicator:hover {
  background-color: #d0050c;
}

/* Dark theme calendar popup styling */
.modal-ad .datetime-input::-webkit-datetime-edit {
  color: #ffffff;
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-ad .datetime-input::-webkit-datetime-edit-fields-wrapper {
  color: #ffffff;
}

.modal-ad .datetime-input::-webkit-datetime-edit-text {
  color: #888;
}

.modal-ad .datetime-input::-webkit-datetime-edit-month-field,
.modal-ad .datetime-input::-webkit-datetime-edit-day-field,
.modal-ad .datetime-input::-webkit-datetime-edit-year-field,
.modal-ad .datetime-input::-webkit-datetime-edit-hour-field,
.modal-ad .datetime-input::-webkit-datetime-edit-minute-field {
  color: #ffffff;
}

.modal-ad .datetime-input::-webkit-datetime-edit-month-field:focus,
.modal-ad .datetime-input::-webkit-datetime-edit-day-field:focus,
.modal-ad .datetime-input::-webkit-datetime-edit-year-field:focus,
.modal-ad .datetime-input::-webkit-datetime-edit-hour-field:focus,
.modal-ad .datetime-input::-webkit-datetime-edit-minute-field:focus {
  background-color: rgba(252, 6, 14, 0.2);
  color: #ffffff;
}

/* Light theme calendar styling */
body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit {
  color: #1a1a1a;
}

body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit-fields-wrapper {
  color: #1a1a1a;
}

body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit-text {
  color: #666;
}

body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit-month-field,
body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit-day-field,
body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit-year-field,
body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit-hour-field,
body.light-theme .modal-ad .datetime-input::-webkit-datetime-edit-minute-field {
  color: #1a1a1a;
}

body.light-theme .modal-ad .datetime-input::-webkit-calendar-picker-indicator {
  filter: invert(0);
}

/* Firefox datetime-local styling */
.modal-ad .datetime-input::-moz-placeholder {
  color: #4a4a4a;
  opacity: 1;
}

body.light-theme .modal-ad .datetime-input::-moz-placeholder {
  color: #999;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .modal-ad {
    max-width: 95% !important;
  }
  
  .modal-ad .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.modal-body-no-scroll {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.modal-body-no-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-body-no-scroll::-webkit-scrollbar-track {
  background: #111111;
  border-radius: 3px;
}

.modal-body-no-scroll::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.modal-body-no-scroll::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

body.light-theme .modal-body-no-scroll::-webkit-scrollbar-track {
  background: #f5f5f5;
}

body.light-theme .modal-body-no-scroll::-webkit-scrollbar-thumb {
  background: #d0d0d0;
}

body.light-theme .modal-body-no-scroll::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* Modal Loading Overlay */
.modal-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 12px;
}

.modal-loading-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-loading-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FC060E;
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.modal-loading-dots .dot:nth-child(1) {
  animation-delay: 0s;
}

.modal-loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.modal-loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

.modal-loading-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

body.light-theme .modal-loading-overlay {
  background: rgba(255, 255, 255, 0.95);
}

body.light-theme .modal-loading-text {
  color: #1a1a1a;
}

body.light-theme .modal-container {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-theme .modal-header {
  border-bottom-color: #e0e0e0;
}

body.light-theme .modal-title {
  color: #1a1a1a;
}

body.light-theme .modal-close {
  color: #666666;
}

body.light-theme .modal-close:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .modal-actions {
  border-top-color: #e0e0e0;
}

body.light-theme .btn-secondary {
  border-color: #e0e0e0;
  color: #666666;
}

body.light-theme .btn-secondary:hover {
  color: #1a1a1a;
  border-color: #d0d0d0;
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .form-label {
  color: #666666;
}

body.light-theme .form-input {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #1a1a1a;
}

body.light-theme .form-input:hover {
  border-color: #d0d0d0;
  background: #ffffff;
}

body.light-theme .form-input:focus {
  border-color: #FC060E;
  background: #ffffff;
}

body.light-theme .form-input option {
  background: #ffffff;
  color: #1a1a1a;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 320px;
  max-width: 420px;
  padding: 14px 16px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

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

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  flex-shrink: 0;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
}

.toast-close {
  background: transparent;
  border: none;
  color: #6a6a6a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-right: 8px;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.toast-close-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Toast Types */
.toast-success {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-info {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.toast-info .toast-icon {
  color: #3b82f6;
}

/* Light Theme Toast */
body.light-theme .toast {
  background: #ffffff;
  border-color: #e0e0e0;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.light-theme .toast-message {
  color: #1a1a1a;
}

body.light-theme .toast-close {
  color: #666666;
}

body.light-theme .toast-close:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .toast-success {
  background: rgba(16, 185, 129, 0.1);
}

body.light-theme .toast-error {
  background: rgba(239, 68, 68, 0.1);
}

body.light-theme .toast-warning {
  background: rgba(245, 158, 11, 0.1);
}

body.light-theme .toast-info {
  background: rgba(59, 130, 246, 0.1);
}

body.light-theme .video-poster {
  border-color: #e0e0e0;
  background: #f5f5f5;
}

/* Wizard Styles */
.modal-large {
  max-width: 700px;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1a1a1a;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  z-index: 0;
}

.wizard-step.completed::after {
  background: #FC060E;
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #a0a0a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-indicator.active {
  background: #FC060E;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(252, 6, 14, 0.2);
}

.step-indicator.completed {
  background: #10b981;
  color: #ffffff;
}

.wizard-step span {
  font-size: 12px;
  color: #a0a0a0;
  text-align: center;
}

.wizard-step .step-indicator.active + span,
.wizard-step .step-indicator.completed + span {
  color: #ffffff;
}

.wizard-content {
  min-height: 300px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #FC060E;
}

.form-checkbox span {
  color: #a0a0a0;
  font-size: 14px;
}

.actors-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.actors-input-container .form-input {
  flex: 1;
}

.btn-add-actor {
  padding: 10px 16px;
  background: #FC060E;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-actor:hover {
  background: #d4050d;
}

.actors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.actor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  font-size: 13px;
  color: #ffffff;
}

.actor-remove {
  background: transparent;
  border: none;
  color: #a0a0a0;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.actor-remove:hover {
  color: #FC060E;
}

.tag-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tag-search-list {
  padding: 4px;
}

.tag-search-item {
  padding: 10px 12px;
  cursor: pointer;
  color: #ffffff;
  font-size: 13px;
  transition: background 0.2s ease;
  border-radius: 4px;
}

.tag-search-item:hover {
  background: #1a1a1a;
}

.tag-search-item.tag-search-create {
  color: #FC060E;
  border-top: 1px solid #1a1a1a;
  margin-top: 4px;
  padding-top: 12px;
}

.tag-search-item.tag-search-create:hover {
  background: #1a1a1a;
  color: #d4050d;
}

body.light-theme .tag-search-results {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-theme .tag-search-item {
  color: #1a1a1a;
}

body.light-theme .tag-search-item:hover {
  background: #f5f5f5;
}

body.light-theme .tag-search-item.tag-search-create {
  border-top-color: #e0e0e0;
}

.image-preview {
  margin-top: 12px;
}

.preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  border: 1px solid #1a1a1a;
}

.form-input.error {
  border-color: #FC060E;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

body.light-theme .wizard-steps {
  border-bottom-color: #e0e0e0;
}

body.light-theme .wizard-step:not(:last-child)::after {
  background: #e0e0e0;
}

body.light-theme .step-indicator {
  background: #e0e0e0;
  color: #666666;
}

body.light-theme .wizard-step span {
  color: #666666;
}

body.light-theme .actor-tag {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #1a1a1a;
}

body.light-theme .preview-image {
  border-color: #e0e0e0;
}

body.light-theme .video-poster:hover {
  border-color: #FC060E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.light-theme .video-poster-placeholder {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999999;
}

body.light-theme .stat-card {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-theme .stat-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .stat-label {
  color: #666666;
}

body.light-theme .stat-value {
  color: #1a1a1a;
}

body.light-theme .grid-card {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light-theme .grid-header {
  background: #f5f5f5;
  border-bottom-color: #e0e0e0;
}

body.light-theme .grid-header-cell {
  color: #666666;
}

body.light-theme .grid-row {
  border-bottom-color: #e0e0e0;
}

body.light-theme .grid-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .grid-cell {
  color: #1a1a1a;
}

body.light-theme .dashboard-page {
  background: #f5f5f5;
}

body.light-theme .dashboard-content {
  background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .header-right {
    flex-direction: column;
    width: 100%;
  }
  
  .search-box {
    width: 100%;
  }
  
  .btn-add {
    width: 100%;
    justify-content: center;
  }
  
  .grid-header,
  .grid-row {
    grid-template-columns: 1fr;
  }
  
  .grid-header-cell,
  .grid-cell {
    padding: 10px 16px;
  }
  
  .actions-cell {
    justify-content: flex-start;
  }
  
  .toolbar-right {
    gap: 8px;
  }
  
  .profile-name {
    display: none;
  }
  
  .toolbar-btn span:not(.profile-name) {
    display: none;
  }
  
  .toolbar-btn {
    padding: 10px;
  }
}

/* Dashboard Styles */
.dashboard-page {
  padding: 0;
}

.page-header {
  margin-bottom: 30px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.header-left {
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-select {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.filter-select:hover {
  border-color: #FC060E;
}

.filter-select:focus {
  outline: none;
  border-color: #FC060E;
  box-shadow: 0 0 0 3px rgba(252, 6, 14, 0.1);
}

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(252, 6, 14, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-card-primary {
  border-left: 4px solid #3b82f6;
}

.stat-card-success {
  border-left: 4px solid #10b981;
}

.stat-card-warning {
  border-left: 4px solid #f59e0b;
}

.stat-card-danger {
  border-left: 4px solid #FC060E;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

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

.stat-card-danger .stat-icon {
  background: rgba(252, 6, 14, 0.1);
  color: #FC060E;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.stat-change svg {
  width: 14px;
  height: 14px;
}

.stat-positive {
  color: #10b981;
}

.stat-negative {
  color: #ef4444;
}

/* Charts */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.chart-card:hover {
  border-color: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chart-card-large {
  grid-column: span 2;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.chart-legend {
  display: flex;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #999;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.chart-body {
  position: relative;
  height: 300px;
}

.chart-card-large .chart-body {
  height: 400px;
}

/* Mini Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.mini-stat-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.mini-stat-card:hover {
  transform: translateY(-3px);
  border-color: #2a2a2a;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.mini-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-stat-icon svg {
  width: 24px;
  height: 24px;
}

.mini-stat-info {
  flex: 1;
}

.mini-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1;
}

.mini-stat-label {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

/* Activity Card */
.activity-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 24px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.activity-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.btn-link {
  background: none;
  border: none;
  color: #FC060E;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: #ff1a26;
  text-decoration: underline;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: #151515;
  border-color: #2a2a2a;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 20px;
  height: 20px;
}

.activity-user {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.activity-video {
  background: rgba(252, 6, 14, 0.1);
  color: #FC060E;
}

.activity-view {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.activity-like {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.activity-ad {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.activity-content {
  flex: 1;
}

.activity-message {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-time {
  font-size: 12px;
  color: #999;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
  .chart-card-large {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-row {
    grid-template-columns: 1fr;
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-content {
    flex-direction: column;
  }
  
  .header-right {
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    margin: 0 auto;
  }
}
