/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
    /* Dark theme (default) */
    --bg-primary: #111827;
    --bg-card: rgba(31, 41, 55, 0.6);
    --bg-card-hover: rgba(55, 65, 81, 0.3);
    --bg-input: rgba(55, 65, 81, 0.8);
    --border-primary: rgba(55, 65, 81, 0.5);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    /* Sidebar */
    --sidebar-bg: linear-gradient(to bottom, #111827, #1f2937, #111827);
    --sidebar-section-bg: rgba(31, 41, 55, 0.5);
    --sidebar-hover-bg: rgba(55, 65, 81, 0.5);
    --sidebar-active-bg: #111827;
    --sidebar-submenu-active-bg: #1f2937;
    --sidebar-icon-bg: rgba(55, 65, 81, 0.5);
    --sidebar-user-bg: rgba(31, 41, 55, 0.5);
    --sidebar-border: rgba(55, 65, 81, 0.5);
}

:root.light {
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: rgba(243, 244, 246, 0.5);
    --bg-input: #f3f4f6;
    --border-primary: rgba(209, 213, 219, 0.5);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    /* Sidebar */
    --sidebar-bg: linear-gradient(to bottom, #ffffff, #f8fafc, #ffffff);
    --sidebar-section-bg: rgba(243, 244, 246, 0.5);
    --sidebar-hover-bg: rgba(243, 244, 246, 0.8);
    --sidebar-active-bg: #f3f4f6;
    --sidebar-submenu-active-bg: #e5e7eb;
    --sidebar-icon-bg: rgba(229, 231, 235, 0.5);
    --sidebar-user-bg: rgba(243, 244, 246, 0.5);
    --sidebar-border: rgba(209, 213, 219, 0.5);
}

/* Sidebar theme utility classes */
.sidebar-active {
    background-color: var(--sidebar-active-bg);
}

.sidebar-hover:hover {
    background-color: var(--sidebar-hover-bg);
}

.sidebar-submenu-active {
    background-color: var(--sidebar-submenu-active-bg);
}

.sidebar-submenu-hover {
    color: var(--text-secondary);
}

.sidebar-submenu-hover:hover {
    background-color: var(--sidebar-submenu-active-bg);
    color: var(--text-primary);
}

.sidebar-icon-inactive {
    color: var(--text-muted);
}

body {
    background-color: var(--bg-primary);
    font-family: "SF Pro Text","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
    letter-spacing: -.022em;
    line-height: 1.47059;
    font-size: 17px;
    font-weight: 400;
}

/* Professional Sign-in Page Enhancements */
.signin-form-field {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signin-form-field:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(255, 179, 14, 0.1);
}

/* Enhanced button styles */
.signin-button {
    position: relative;
    overflow: hidden;
}

.signin-button::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;
}

.signin-button:hover::before {
    left: 100%;
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.floating-bg {
    animation: float 6s ease-in-out infinite;
}

/* Remove all page load animations to prevent blinking */
.signin-card {
    /* No animation */
}

.logo-container {
    /* No animation */
}

/* Input focus glow effect */
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(255, 179, 14, 0.1), 0 0 20px rgba(255, 179, 14, 0.05);
}

/* Password visibility toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #FFB30E;
}

/* Enhanced card prominence */
.prominent-card {
    border: 1px solid rgba(255, 179, 14, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 179, 14, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Custom checkbox styling */
.custom-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(55, 65, 81, 0.91); /* dark gray (gray-700) when unchecked */
    border: 1px solid #4B5563; /* gray-600 border */
    border-radius: 0.125rem; /* rounded-sm equivalent */
    cursor: pointer;
    display: inline-block;
    height: 1rem; /* h-4 equivalent */
    position: relative;
    width: 1rem; /* w-4 equivalent */
    vertical-align: middle;
}

/* Checked state */
.custom-checkbox:checked {
    background-color: #FFB30E; /* your specific yellow color when checked */
    border-color: #FFB30E;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 115%;
}

.checkmark-draw {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: draw 0.8s ease forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Hero Page Custom Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fade-in-left 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fade-in-right 0.8s ease-out;
}

/* Enhanced floating animation for hero background elements */
@keyframes hero-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes hero-float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(90deg); }
}

.animate-float {
    animation: hero-float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: hero-float-slow 8s ease-in-out infinite;
}

/* Futuristic AI Animations */
@keyframes scan-line {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes scan-line-vertical {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes neural-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        filter: hue-rotate(90deg);
    }
}

@keyframes data-stream {
    0% {
        transform: translateX(-100vw) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-50px);
        opacity: 0;
    }
}

@keyframes hologram-flicker {
    0%, 100% {
        opacity: 1;
        transform: skew(0deg);
    }
    25% {
        opacity: 0.8;
        transform: skew(0.5deg);
    }
    50% {
        opacity: 0.9;
        transform: skew(-0.3deg);
    }
    75% {
        opacity: 0.85;
        transform: skew(0.2deg);
    }
}

@keyframes quantum-glow {
    0%, 100% {
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
    }
    50% {
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* AI Matrix Background Effect */
@keyframes matrix-rain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.neural-pulse {
    animation: neural-pulse 3s ease-in-out infinite;
}

.hologram-flicker {
    animation: hologram-flicker 2s ease-in-out infinite;
}

.quantum-glow {
    animation: quantum-glow 2s ease-in-out infinite;
}

/* Enhanced glitch effect for futuristic text */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.text-glitch:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Mobile-Friendly Flash Notifications */
.pt-safe-top {
    padding-top: env(safe-area-inset-top, 1rem);
}

/* Smooth slide-in animation for flash notifications */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

[data-flash-notification] {
    animation: slideInFromTop 0.4s ease-out;
}

/* Enhanced progress bar animation for better UX */
@keyframes progressBarShrink {
    0% { width: 100%; }
    100% { width: 0%; }
}

[data-progress-bar] {
    transition: width 5s linear;
}

/* Mobile touch improvements */
@media (max-width: 640px) {
    [data-flash-notification] button {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    [data-flash-content] {
        min-height: 60px;
        display: flex;
        align-items: center;
    }
}

/* Tablet and larger screens */
@media (min-width: 641px) {
    [data-flash-notification] {
        max-width: 28rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Order Number Blinking Animation */
@keyframes orderBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.1;
    }
}

.order-appear-animation {
    animation: orderBlink 0.3s ease-in-out;
    animation-iteration-count: 10;
}

/* ===== Sign-In Page Light Mode ===== */

/* Page background */
:root.light #signin-page {
    background-image: linear-gradient(to bottom right, #f8fafc, #f1f5f9, #e2e8f0) !important;
}

/* "Weekler" heading (near-invisible light-gray gradient on light bg) */
:root.light #signin-page h1 {
    background-image: linear-gradient(to right, #1f2937, #374151) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Tagline text */
:root.light #signin-page .text-gray-400,
:root.light #signin-page .text-gray-500 {
    color: #6b7280 !important;
}

/* Back to Home / toggle link */
:root.light #signin-page header a {
    color: #6b7280 !important;
}
:root.light #signin-page header a:hover {
    color: #FFB30E !important;
}

/* Sign-in card */
:root.light #signin-card {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(209, 213, 219, 0.6) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
}

/* "Welcome Back" heading */
:root.light #signin-card h2 {
    background-image: linear-gradient(to right, #1f2937, #374151) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Card description text */
:root.light #signin-card p {
    color: #6b7280 !important;
}

/* Form labels */
:root.light #signin-card label,
:root.light #signin-card .text-gray-200 {
    color: #374151 !important;
}

/* Form inputs */
:root.light #signin-card input[type="email"],
:root.light #signin-card input[type="password"] {
    background-color: #f9fafb !important;
    border-color: rgba(209, 213, 219, 0.8) !important;
    color: #111827 !important;
}
:root.light #signin-card input[type="email"]::placeholder,
:root.light #signin-card input[type="password"]::placeholder {
    color: #9ca3af !important;
}
:root.light #signin-card input[type="email"]:focus,
:root.light #signin-card input[type="password"]:focus {
    border-color: rgba(255, 179, 14, 0.6) !important;
}

/* Remember me checkbox label */
:root.light #signin-card .text-gray-300 {
    color: #4b5563 !important;
}

/* Divider line */
:root.light #signin-card .border-gray-700\/30 {
    border-color: rgba(209, 213, 219, 0.5) !important;
}

/* ===== Welcome / Public Page Light Mode ===== */

/* Hero section background */
:root.light #welcome-hero {
    background-image: linear-gradient(to bottom right, #f8fafc, #f1f5f9, #e2e8f0) !important;
}

/* Navbar */
:root.light #welcome-nav {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(209, 213, 219, 0.5) !important;
}

/* Nav links */
:root.light #welcome-nav a {
    color: #4b5563 !important;
}
:root.light #welcome-nav a:hover {
    color: #FFB30E !important;
}

/* "Sign In" link in nav */
:root.light .welcome-signin-link {
    color: #4b5563 !important;
}

/* Hero headline "Revolutionary" (light gray gradient → invisible on light bg) */
:root.light #welcome-hero h1 .hero-headline-primary {
    background-image: linear-gradient(to right, #1f2937, #374151) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Hero body text */
:root.light #welcome-hero p {
    color: #4b5563 !important;
}

/* Hero stats labels */
:root.light #welcome-hero .text-gray-400 {
    color: #6b7280 !important;
}

/* Hero "Watch Live Demo" secondary button */
:root.light #welcome-hero a.border-gray-600 {
    border-color: #9ca3af !important;
    color: #374151 !important;
}
:root.light #welcome-hero a.border-gray-600:hover {
    background-color: rgba(243, 244, 246, 0.8) !important;
    border-color: #6b7280 !important;
    color: #111827 !important;
}

/* Live Demo section background */
:root.light #welcome-live-demo {
    background-image: linear-gradient(to bottom right, #f8fafc, #f1f5f9, #e2e8f0) !important;
}
:root.light #welcome-live-demo h2,
:root.light #welcome-live-demo h3 {
    color: #111827 !important;
}
:root.light #welcome-live-demo p,
:root.light #welcome-live-demo .text-gray-400 {
    color: #4b5563 !important;
}

/* Pricing section background */
:root.light #pricing {
    background-image: linear-gradient(to bottom right, #f8fafc, #f1f5f9, #e2e8f0) !important;
}
:root.light #pricing h2,
:root.light #pricing h3,
:root.light #pricing h4 {
    color: #111827 !important;
}
:root.light #pricing p,
:root.light #pricing .text-gray-400,
:root.light #pricing .text-gray-300 {
    color: #4b5563 !important;
}
:root.light #pricing .text-white {
    color: #111827 !important;
}

/* Footer background */
:root.light #contact {
    background-color: #f1f5f9 !important;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}
:root.light #contact h3,
:root.light #contact h4 {
    color: #111827 !important;
}
:root.light #contact .text-white {
    color: #111827 !important;
}
:root.light #contact p,
:root.light #contact .text-gray-400 {
    color: #4b5563 !important;
}
:root.light #contact a.text-gray-400 {
    color: #6b7280 !important;
}
:root.light #contact a.text-gray-400:hover {
    color: #FFB30E !important;
}
:root.light #contact .bg-gray-800 {
    background-color: #e5e7eb !important;
}
:root.light #contact .hover\:bg-gray-700:hover {
    background-color: #d1d5db !important;
}
:root.light #contact .border-gray-800 {
    border-color: rgba(209, 213, 219, 0.5) !important;
}
