/**
 * Copyright 2026 Cubesob Demo Template.
 * Theme Name: Solvo
 * Theme Type: Dashboard
 * Developed by Mohammad Rehaan Nizami and Designed by Arsala Jeelani
 * All rights reserved.
 */

:root {
  --solvo-font-family:
    "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --solvo-grain-texture: url("../assets/textures/grain.png");
}

/* ==========================================================================
   CSS View Transition Circular Ripple Animation (Cubesob Spec)
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 9999;
}

/* ==========================================================================
   Base Typography & Hardware Acceleration Enhancements
   ========================================================================== */
html {
  font-family: var(--solvo-font-family);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth kinetic rendering */
body {
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Interactive elements allow text selection */
input,
textarea,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

/* Refined custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(125, 125, 125, 0.2);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 125, 125, 0.35);
}

/* ==========================================================================
   Cubesob Floating Control Bar & Demo Pill
   ========================================================================== */
.cubesob-floating-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cubesob-floating-bar > * {
  pointer-events: auto;
}

.cubesob-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--fg, #111);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
  cursor: default;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cubesob-demo-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.cubesob-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #38bdf8);
  box-shadow: 0 0 8px var(--accent, #38bdf8);
  display: inline-block;
  animation: cubesobPulse 2.4s infinite ease-in-out;
}

@keyframes cubesobPulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.cubesob-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--fg, #111);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

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

.cubesob-theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  position: absolute;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.theme-icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.theme-icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html.dark .cubesob-demo-pill,
html[data-theme="dark"] .cubesob-demo-pill {
  background: rgba(14, 21, 38, 0.85);
  color: #f0f4fc;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark .cubesob-theme-toggle,
html[data-theme="dark"] .cubesob-theme-toggle {
  background: rgba(14, 21, 38, 0.85);
  color: #f0f4fc;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark .theme-icon--sun,
html[data-theme="dark"] .theme-icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html.dark .theme-icon--moon,
html[data-theme="dark"] .theme-icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

@media (max-width: 640px) {
  .cubesob-floating-bar {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .cubesob-demo-pill {
    height: 38px;
    padding: 0 13px;
    font-size: 11px;
  }
  .cubesob-theme-toggle {
    width: 38px;
    height: 38px;
  }
}
