/* =========================================
   WebShare - Glassmorphism UI
   ========================================= */

:root {
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --cursor-glow-color: rgba(102, 126, 234, 0.6);
  --cursor-glow-size: 150px;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: var(--dark-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Cursor glow effect container */
.cursor-glow {
  position: fixed;
  width: var(--cursor-glow-size);
  height: var(--cursor-glow-size);
  background: radial-gradient(circle, var(--cursor-glow-color) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* Animated background particles */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
    opacity: 0.8;
  }
}

/* =========================================
   Glassmorphism Components
   ========================================= */

/* Glass card effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(31, 38, 135, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Card base */
.card {
  border-radius: 16px;
  transition: box-shadow 0.2s ease;
  color: var(--app-text);
}

.card:hover {
  box-shadow: var(--app-shadow-lg);
}

.card-header {
  background: rgba(241, 245, 249, 0.72);
  border-bottom: 1px solid var(--app-border);
  color: var(--app-text);
}

.card-body {
  color: var(--app-text);
}

.card-title {
  color: var(--app-text);
}

.card-text {
  color: var(--app-text-muted);
}

/* Navbar */
.navbar {
  transition: box-shadow 0.2s ease;
}

.navbar-brand, .nav-link {
  color: var(--app-text) !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--app-primary) !important;
  text-shadow: none;
}

.dropdown-menu {
  border-radius: 12px;
}

.dropdown-item {
  color: var(--app-text);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.07);
  color: var(--app-primary);
}

.dropdown-divider {
  border-color: var(--app-border);
}

/* =========================================
   Glass Buttons
   ========================================= */

.btn {
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::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:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: var(--primary-gradient);
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 239, 125, 0.5);
}

.btn-info {
  background: var(--accent-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-danger {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-success:hover {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-color: transparent;
  color: #fff;
}

.btn-outline-info:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

.btn-outline-danger:hover {
  background: var(--secondary-gradient);
  border-color: transparent;
  color: #fff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
}

/* =========================================
   Glass Form Elements
   ========================================= */

.form-control, .form-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(102, 126, 234, 0.6);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.3), 0 0 20px rgba(102, 126, 234, 0.2);
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border);
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.3);
}

.form-check-label {
  color: rgba(255, 255, 255, 0.9);
}

.input-group-text {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px 0 0 12px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================================
   Tables with Glass Effect
   ========================================= */

.table {
  color: rgba(255, 255, 255, 0.9);
}

.table thead th {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--glass-border);
  color: #fff;
}

.table tbody tr {
  border-color: var(--glass-border);
  transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
}

.table td, .table th {
  border-color: var(--glass-border);
}

/* =========================================
   Badges with Glass Effect
   ========================================= */

.badge {
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.5em 0.8em;
}

.badge.bg-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.badge.bg-primary {
  background: var(--primary-gradient) !important;
}

.badge.bg-info {
  background: var(--accent-gradient) !important;
  color: #1a1a2e !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f5af19 0%, #f12711 100%) !important;
  color: #fff !important;
}

.badge.bg-secondary {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* =========================================
   Alerts with Glass Effect
   ========================================= */

.alert {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
}

.alert-success {
  background: rgba(17, 153, 142, 0.3);
  border-color: rgba(56, 239, 125, 0.5);
}

.alert-danger {
  background: rgba(245, 87, 108, 0.3);
  border-color: rgba(245, 87, 108, 0.5);
}

.alert-warning {
  background: rgba(245, 175, 25, 0.3);
  border-color: rgba(245, 175, 25, 0.5);
}

.alert-info {
  background: rgba(79, 172, 254, 0.3);
  border-color: rgba(79, 172, 254, 0.5);
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* =========================================
   Breadcrumbs with Glass Effect
   ========================================= */

.breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   Typography
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  color: var(--app-text);
}

p, .text-muted {
  color: var(--app-text-muted) !important;
}

a {
  color: var(--app-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--app-primary-hover);
  text-shadow: none;
}

code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  color: #a5b4fc;
}

/* =========================================
   Footer with Glass Effect
   ========================================= */

.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border) !important;
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: #fff;
}

/* =========================================
   Icon Styles
   ========================================= */

.icon-square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.icon-square.bg-primary {
  background: var(--primary-gradient) !important;
}

.icon-square.bg-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.icon-square.bg-info {
  background: var(--accent-gradient) !important;
}

/* =========================================
   Stats Cards Enhancement
   ========================================= */

.stats-card {
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transition: all 0.5s ease;
}

.stats-card:hover::before {
  transform: translate(10%, 10%);
}

/* =========================================
   HTML Editor Styles
   ========================================= */

.html-editor-container {
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.editor-toolbar {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.editor-toolbar .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.editor-toolbar .btn-group {
  margin-right: 0.5rem;
}

.editor-tab-buttons {
  display: flex;
  gap: 0.25rem;
}

.editor-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.editor-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.editor-tab-btn.active {
  background: rgba(102, 126, 234, 0.3);
  color: #fff;
  border-bottom-color: transparent;
}

.editor-content {
  display: flex;
  min-height: 400px;
}

.code-editor-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-panel {
  flex: 1;
  border-left: 1px solid var(--glass-border);
  background: #fff;
  display: none;
}

.preview-panel.active {
  display: block;
}

.preview-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* CodeMirror customization */
.CodeMirror {
  height: 100%;
  min-height: 400px;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  background: transparent !important;
}

.CodeMirror-gutters {
  background: rgba(255, 255, 255, 0.05) !important;
  border-right: 1px solid var(--glass-border) !important;
}

.CodeMirror-linenumber {
  color: rgba(255, 255, 255, 0.4) !important;
}

.CodeMirror-cursor {
  border-left: 2px solid #667eea !important;
}

.CodeMirror-selected {
  background: rgba(102, 126, 234, 0.3) !important;
}

.CodeMirror-matchingbracket {
  background: rgba(102, 126, 234, 0.4) !important;
  color: #fff !important;
}

/* Copy button styling */
.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.copy-code-btn.copied {
  background: rgba(56, 239, 125, 0.3);
  border-color: rgba(56, 239, 125, 0.5);
  color: #38ef7d;
}

/* =========================================
   Animations
   ========================================= */

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Staggered animation for list items */
.stagger-fade > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger-fade > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade > *:nth-child(5) { animation-delay: 0.5s; }

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Container styling */
.container, .container-fluid {
  position: relative;
  z-index: 1;
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 768px) {
  .editor-content {
    flex-direction: column;
  }
  
  .preview-panel {
    border-left: none;
    border-top: 1px solid var(--glass-border);
    min-height: 300px;
  }
  
  .cursor-glow {
    display: none;
  }
}

/* =========================================
   Accessibility: Reduced Motion
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
  
  .particle {
    animation: none;
  }
  
  .pulse-glow {
    animation: none;
  }
  
  .animated-gradient {
    animation: none;
    background-size: 100% 100%;
  }
  
  .fade-in-up {
    animation: none;
    opacity: 1;
  }
  
  .stagger-fade > * {
    animation: none;
    opacity: 1;
  }
  
  .card:hover,
  .glass-card:hover,
  .btn:hover {
    transform: none;
  }
  
  .table-hover tbody tr:hover {
    transform: none;
  }
  
  .btn::before {
    display: none;
  }
  
  /* Disable star animations for reduced motion */
  .star {
    animation: none;
    opacity: 0.6;
  }
  
  .shooting-star {
    display: none;
  }
  
  /* Use default system cursors for reduced motion/accessibility */
  body {
    cursor: auto;
  }
  
  a, button, .btn, [role="button"],
  input[type="submit"], input[type="button"],
  .nav-link, .dropdown-item, .clickable {
    cursor: pointer;
  }
  
  input[type="text"], input[type="email"], input[type="password"],
  input[type="search"], input[type="url"], input[type="tel"],
  input[type="number"], textarea, .form-control, .form-select,
  [contenteditable="true"] {
    cursor: text;
  }
}

/* =========================================
   Scrollbar Styling
   ========================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* =========================================
   Starry Universe Background
   ========================================= */

.starry-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 30%, #0f0f2e 60%, #050515 100%);
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--twinkle-duration, 2s) ease-in-out infinite;
  box-shadow: 0 0 var(--star-glow, 3px) var(--star-glow, 3px) rgba(255, 255, 255, 0.3);
}

.star.small {
  width: 1px;
  height: 1px;
  --star-glow: 1px;
}

.star.medium {
  width: 2px;
  height: 2px;
  --star-glow: 2px;
}

.star.large {
  width: 3px;
  height: 3px;
  --star-glow: 4px;
}

.star.bright {
  width: 4px;
  height: 4px;
  --star-glow: 6px;
  box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.5),
              0 0 12px 6px rgba(100, 150, 255, 0.3);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Shooting star animation */
.shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #fff 0%, transparent 100%);
  border-radius: 50%;
  animation: shoot 3s ease-out infinite;
  opacity: 0;
}

.shooting-star::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, transparent 100%);
  transform: translateX(-80px) translateY(-1px);
  border-radius: 50%;
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  15% {
    transform: translateX(300px) translateY(300px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* =========================================
   About Us Section
   ========================================= */

.about-section {
  position: relative;
}

.about-section h2,
.about-section h4,
.about-section h5,
.about-section h6,
.about-section .card-title {
  color: var(--app-text) !important;
}

.about-section p,
.about-section .lead {
  color: var(--app-text-muted) !important;
}

.about-section span,
.about-section li {
  color: var(--app-text) !important;
}

.about-section .card-body {
  color: var(--app-text) !important;
}

.about-section .card-text {
  color: var(--app-text-muted) !important;
}

/* =========================================
   Enhanced Glass Navbar
   ========================================= */

.glass-navbar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--app-border) !important;
  box-shadow: var(--app-shadow-sm);
}

.glass-navbar .navbar-brand {
  color: var(--app-text) !important;
  font-weight: 700;
  text-shadow: none;
}

.glass-navbar .nav-link {
  color: var(--app-text) !important;
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0 2px;
}

.glass-navbar .nav-link:hover {
  color: var(--app-primary) !important;
  background: rgba(37, 99, 235, 0.08);
  text-shadow: none;
}

/* =========================================
   Enhanced Table Styling
   ========================================= */

.table {
  color: #fff;
  background: transparent;
}

.table thead th {
  background: rgba(102, 126, 234, 0.3) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 600;
  padding: 1rem;
}

.table tbody tr {
  border-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.table tbody td {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.875rem 1rem;
  border-color: rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.table tbody td a {
  color: #7c8cff !important;
}

.table tbody td a:hover {
  color: #a5b4fc !important;
}

.table tbody td code {
  background: rgba(102, 126, 234, 0.2);
  color: #a5b4fc;
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

.table-success {
  background: rgba(17, 153, 142, 0.2) !important;
}

.table-success td {
  color: #fff !important;
}

/* Table inside cards fix */
.card .table {
  margin-bottom: 0;
}

.card .table thead th {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* List group items in dark theme */
.list-group-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.list-group-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.list-group-item.active {
  background: var(--primary-gradient);
  border-color: transparent;
}

.list-group-item a {
  color: #7c8cff;
}

.list-group-item a:hover {
  color: #a5b4fc;
}

/* =========================================
   Table Pagination & Filter Controls
   ========================================= */

.table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  align-items: center;
}

.table-search {
  flex: 1;
  min-width: 200px;
}

.table-search input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.table-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.table-search input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.table-filter select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.table-filter select option {
  background: #1a1a2e;
  color: #fff;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.pagination-controls .btn {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
}

.pagination-controls .btn:hover:not(:disabled) {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.pagination-controls .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-controls .btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
}

.page-size-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
}

.page-size-select option {
  background: #1a1a2e;
  color: #fff;
}

/* Sortable column headers */
.table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.5rem;
}

.table th.sortable:hover {
  background: rgba(102, 126, 234, 0.4) !important;
}

.table th.sortable::after {
  content: '↕';
  position: absolute;
  right: 0.5rem;
  opacity: 0.5;
  font-size: 0.8em;
}

.table th.sortable.asc::after {
  content: '↑';
  opacity: 1;
}

.table th.sortable.desc::after {
  content: '↓';
  opacity: 1;
}

/* =========================================
   GrapesJS Designer Modal Styles
   ========================================= */

.designer-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.designer-modal {
  width: 95%;
  height: 95%;
  background: #1a1a2e;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.designer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.designer-header h4 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.designer-header h4 i {
  color: #667eea;
}

.designer-actions {
  display: flex;
  gap: 0.75rem;
}

.designer-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* GrapesJS Container */
#grapesEditor {
  height: 100%;
  width: 100%;
}

/* GrapesJS Overrides for Dark Theme */
.gjs-one-bg {
  background-color: #1a1a2e !important;
}

.gjs-two-color {
  color: rgba(255, 255, 255, 0.9) !important;
}

.gjs-three-bg {
  background-color: #252545 !important;
}

.gjs-four-color,
.gjs-four-color-h:hover {
  color: #667eea !important;
}

.gjs-pn-panel {
  background-color: #1a1a2e !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.gjs-pn-views-container {
  background-color: #1a1a2e !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.gjs-pn-views {
  background-color: #1a1a2e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.gjs-cv-canvas {
  background-color: #f5f5f5 !important;
  top: 0 !important;
}

.gjs-block {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  min-height: 70px !important;
  padding: 0.5rem !important;
  margin: 0.25rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease !important;
}

.gjs-block:hover {
  background-color: rgba(102, 126, 234, 0.2) !important;
  border-color: #667eea !important;
}

.gjs-block-label {
  color: rgba(255, 255, 255, 0.8) !important;
}

.gjs-block-category {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.gjs-title {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.75rem !important;
}

.gjs-sm-sector {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.gjs-sm-sector-title {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.gjs-sm-properties {
  background-color: transparent !important;
}

.gjs-field {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  color: #fff !important;
}

.gjs-field input,
.gjs-field select {
  color: #fff !important;
}

.gjs-field-colorp-c {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.gjs-clm-tags {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.gjs-clm-tag {
  background-color: rgba(102, 126, 234, 0.3) !important;
  border-radius: 4px !important;
  color: #fff !important;
}

.gjs-layer {
  background-color: transparent !important;
}

.gjs-layer:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.gjs-layer-selected {
  background-color: rgba(102, 126, 234, 0.2) !important;
}

.gjs-layer-name {
  color: rgba(255, 255, 255, 0.9) !important;
}

.gjs-layers {
  background-color: transparent !important;
}

.gjs-trt-trait {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.gjs-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

.gjs-btn-prim {
  background-color: #667eea !important;
  border-radius: 6px !important;
  color: #fff !important;
}

.gjs-btn-prim:hover {
  background-color: #5a6fd9 !important;
}

/* GrapesJS toolbar buttons */
.gjs-pn-btn {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 2px !important;
}

.gjs-pn-btn:hover {
  background-color: rgba(102, 126, 234, 0.3) !important;
  border-color: #667eea !important;
}

.gjs-pn-btn.gjs-pn-active {
  background-color: rgba(102, 126, 234, 0.5) !important;
  border-color: #667eea !important;
  color: #fff !important;
}

/* GrapesJS device buttons */
.gjs-pn-devices-c {
  padding: 0.5rem !important;
}

/* GrapesJS frame wrapper */
.gjs-frame-wrapper {
  background-color: #f0f0f0;
}

/* Responsive adjustments for designer modal */
@media (max-width: 768px) {
  .designer-modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .designer-header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .designer-header h4 {
    font-size: 1rem;
    width: 100%;
  }
  
  .designer-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================
   Enhanced Hero Section - Glassy Background
   ========================================= */

.hero-section {
  position: relative;
  overflow: hidden;
}

/* =========================================
   Bootstrap Table Cells - Glassy Background Override
   ========================================= */

.table>:not(caption)>*>* {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  --bs-table-bg: transparent !important;
}

.table>:not(caption)>*>*:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* =========================================
   Row g-4 Stagger-Fade - Rounded Edges
   ========================================= */

.row.g-4.stagger-fade,
.row.g-4 .stagger-fade {
  border-radius: 16px;
  overflow: hidden;
}

.row.g-4.stagger-fade > *,
.row.g-4 .stagger-fade > * {
  border-radius: 12px;
}

/* Apply rounded edges to direct child elements within columns */
.row.g-4 > [class*="col"] > .card,
.row.g-4 > [class*="col"] > .glass-card,
.row.g-4 > [class*="col"] > div {
  border-radius: 16px;
  overflow: hidden;
}

/* =========================================
   Shooting Star Cursor with Transparency
   ========================================= */

/* Custom shooting star cursor */
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='starGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ffffff;stop-opacity:1'/%3E%3Cstop offset='100%25' style='stop-color:%23667eea;stop-opacity:0.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='6' cy='6' r='3' fill='url(%23starGrad)'/%3E%3Cpath d='M6 6 L28 28' stroke='url(%23starGrad)' stroke-width='2' stroke-linecap='round' opacity='0.6'/%3E%3Ccircle cx='6' cy='6' r='5' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") 6 6, auto;
}

/* Pointer cursor for interactive elements with shooting star style */
a, button, .btn, [role="button"],
input[type="submit"], input[type="button"],
.nav-link, .dropdown-item, .clickable {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='starGradPointer' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2338ef7d;stop-opacity:1'/%3E%3Cstop offset='100%25' style='stop-color:%2311998e;stop-opacity:0.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='6,2 8,8 14,8 9,12 11,18 6,14 1,18 3,12 -2,8 4,8' fill='url(%23starGradPointer)' transform='translate(4,2)'/%3E%3Cpath d='M10 10 L26 26' stroke='url(%23starGradPointer)' stroke-width='2' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E") 10 10, pointer;
}

/* Text cursor for input fields with shooting star accent */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="tel"],
input[type="number"], textarea, .form-control, .form-select,
[contenteditable="true"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cline x1='12' y1='2' x2='12' y2='22' stroke='%23667eea' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='2' r='2' fill='%23ffffff' opacity='0.8'/%3E%3Ccircle cx='12' cy='22' r='2' fill='%23ffffff' opacity='0.8'/%3E%3C/svg%3E") 12 12, text;
}

/* =========================================
   Background Tile Image for Textbox and Form Areas
   ========================================= */

.form-control, .form-select, textarea {
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: 20px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.15) url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23667eea' fill-opacity='0.1'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: 20px 20px !important;
  border-color: rgba(102, 126, 234, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.3), 0 0 20px rgba(102, 126, 234, 0.2);
}

/* Card and container backgrounds with subtle tile pattern */
.card, .glass-card {
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2.5l5 3.5-5 3.5z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* =========================================
   Professional UI Overrides
   ========================================= */

:root {
  --app-bg: #eef2f7;
  --app-surface: rgba(255, 255, 255, 0.82);
  --app-surface-strong: rgba(255, 255, 255, 0.92);
  --app-surface-muted: rgba(241, 245, 249, 0.82);
  --app-border: rgba(15, 23, 42, 0.08);
  --app-border-strong: rgba(15, 23, 42, 0.12);
  --app-text: #0f172a;
  --app-text-muted: #475569;
  --app-primary: #2563eb;
  --app-primary-hover: #1d4ed8;
  --app-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --app-shadow-md: 0 20px 45px rgba(15, 23, 42, 0.09);
  --app-shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.12);
  --app-radius: 18px;
  --app-panel-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.9) 100%);
  --app-input-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.9) 100%);
  --app-tile: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.075'%3E%3Cpath d='M0 0h28v28H0zM28 28h28v28H28z'/%3E%3C/g%3E%3Cpath d='M28 0v56M0 28h56' stroke='%231e293b' stroke-opacity='0.05' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
}

body,
body.ui-ready {
  margin-bottom: 60px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--app-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #e2e8f0 100%);
  background-attachment: fixed;
  cursor: auto;
}

.starry-bg,
.cursor-glow,
.particles-bg,
.star,
.shooting-star {
  display: none !important;
}

a,
.nav-link,
.dropdown-item,
.navbar-brand {
  color: var(--app-text) !important;
  text-shadow: none !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover,
.nav-link:hover,
.dropdown-item:hover,
.navbar-brand:hover {
  color: var(--app-primary) !important;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.card-header,
.table,
.table thead th,
.table tbody td,
.list-group-item,
.form-label,
.breadcrumb-item.active,
.pagination-info,
.designer-header h4,
.gjs-title,
.gjs-layer-name,
.gjs-label,
.gjs-two-color {
  color: var(--app-text) !important;
}

p,
.text-muted,
.card-text,
.card-body,
.form-text,
.breadcrumb-item a,
.dropdown-item,
.footer,
.list-group-item small,
.designer-header,
.gjs-label {
  color: var(--app-text-muted) !important;
}

.page-shell {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.app-main {
  position: relative;
}

.navbar,
.glass-navbar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--app-border) !important;
  box-shadow: var(--app-shadow-sm) !important;
}

.glass-navbar .navbar-brand,
.glass-navbar .nav-link,
.navbar-brand,
.nav-link {
  color: var(--app-text) !important;
}

.glass-navbar .nav-link,
.nav-link {
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
}

.glass-navbar .nav-link:hover,
.nav-link:hover,
.glass-navbar .nav-link:focus,
.nav-link:focus {
  background: rgba(37, 99, 235, 0.08) !important;
}

.dropdown-menu,
.breadcrumb,
.table-controls,
.table-pagination,
.designer-modal,
.html-editor-container,
.hero-section,
.about-section,
.modal-content,
.offcanvas,
.card,
.glass-card,
.alert,
.list-group-item,
.table-responsive,
.footer {
  background: var(--app-panel-fill), var(--app-tile) !important;
  background-color: var(--app-surface) !important;
  background-size: 100% 100%, 56px 56px !important;
  background-blend-mode: normal, multiply;
  border: 1px solid var(--app-border) !important;
  box-shadow: var(--app-shadow-md) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card,
.glass-card,
.hero-section,
.about-section,
.html-editor-container,
.designer-modal,
.table-controls,
.table-pagination,
.modal-content,
.offcanvas,
.alert,
.list-group-item,
.table-responsive {
  border-radius: var(--app-radius) !important;
}

.card:hover,
.glass-card:hover,
.btn:hover,
.table-hover tbody tr:hover,
.stats-card:hover,
.stats-card:hover::before {
  transform: none !important;
  box-shadow: var(--app-shadow-lg) !important;
}

.card::before,
.stats-card::before,
.hero-section::before,
.btn::before {
  display: none !important;
}

.btn {
  border-radius: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

.btn-primary,
.btn-success,
.btn-info {
  background: linear-gradient(180deg, var(--app-primary) 0%, var(--app-primary-hover) 100%) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-danger,
.editor-tab-btn,
.pagination-controls .btn {
  background: rgba(255, 255, 255, 0.5) !important;
  color: var(--app-text) !important;
  border: 1px solid var(--app-border-strong) !important;
  box-shadow: none !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover,
.editor-tab-btn:hover,
.editor-tab-btn.active,
.pagination-controls .btn:hover:not(:disabled),
.pagination-controls .btn.active {
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--app-primary) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.form-control,
.form-select,
textarea,
.input-group-text,
.table-search input,
.table-filter select,
.page-size-select,
.gjs-field {
  background: var(--app-input-fill), var(--app-tile) !important;
  background-size: 100% 100%, 56px 56px !important;
  background-blend-mode: normal, multiply;
  color: var(--app-text) !important;
  border: 1px solid var(--app-border-strong) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-control::placeholder,
.table-search input::placeholder {
  color: #64748b !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
.table-search input:focus,
.table-filter select:focus,
.page-size-select:focus {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.96) 100%), var(--app-tile) !important;
  background-size: 100% 100%, 56px 56px !important;
  color: var(--app-text) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12) !important;
}

.dropdown-menu,
.table-controls,
.table-pagination,
.breadcrumb,
.alert,
.footer {
  color: var(--app-text-muted) !important;
}

.table,
.table>:not(caption)>*>* {
  background: transparent !important;
  color: var(--app-text) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  --bs-table-bg: transparent !important;
}

.table thead th {
  background: rgba(255, 255, 255, 0.5) !important;
  color: var(--app-text) !important;
  font-weight: 600;
}

.table tbody tr:hover,
.table>:not(caption)>*>*:hover {
  background: rgba(37, 99, 235, 0.04) !important;
}

.list-group-item.active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: linear-gradient(180deg, var(--app-primary) 0%, var(--app-primary-hover) 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.footer {
  border-top: 1px solid var(--app-border) !important;
}

.designer-modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.gjs-one-bg,
.gjs-pn-panel,
.gjs-pn-views-container,
.gjs-pn-views,
.gjs-three-bg {
  background-color: rgba(255, 255, 255, 0.92) !important;
}

.gjs-block,
.gjs-title,
.gjs-sm-sector-title,
.gjs-clm-tags,
.gjs-pn-btn,
.copy-code-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: var(--app-border) !important;
  color: var(--app-text) !important;
}

.gjs-four-color,
.gjs-four-color-h:hover,
.gjs-btn-prim,
.gjs-pn-btn.gjs-pn-active {
  color: #fff !important;
  background: var(--app-primary) !important;
  border-color: var(--app-primary) !important;
}

.fade-in-up,
.stagger-fade > *,
.pulse-glow,
.animated-gradient,
.particle,
.star,
.shooting-star {
  animation: none !important;
  opacity: 1;
}

a,
button,
.btn,
[role="button"],
input[type="submit"],
input[type="button"],
.nav-link,
.dropdown-item,
.clickable {
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
.form-control,
.form-select,
[contenteditable="true"] {
  cursor: text;
}

/* Hero section uses the professional panel fill from the big override block above */
.hero-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #1e40af 100%), var(--app-tile) !important;
  background-size: 100% 100%, 56px 56px !important;
  background-blend-mode: normal, soft-light;
}

.hero-section h1,
.hero-section p,
.hero-section .lead,
.hero-section .text-white,
.hero-section .text-white-50 {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .page-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar,
  .glass-navbar,
  .card,
  .glass-card,
  .table-controls,
  .table-pagination,
  .hero-section,
  .about-section {
    border-radius: 14px !important;
  }
}
}