/*
 * SIAMAUTOGEN Premium Styling Sheet
 * Designed with Glassmorphism, Luxury Glows, and Fluid Animations
 */

:root {
    /* Color Tokens - Dark Mode Defaults */
    --primary: #0066FF;
    --primary-rgb: 0, 102, 255;
    --secondary: #00D5FF;
    --secondary-rgb: 0, 213, 255;
    --accent: #8B5CF6;
    --accent-rgb: 139, 92, 246;
    
    --bg-gradient: linear-gradient(135deg, #050811 0%, #0b1120 50%, #111827 100%);
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(17, 24, 39, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    
    --border-radius: 16px;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* Light Theme Variable Overrides */
html.light {
    --bg-gradient: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #d1d5db 100%);
    --text-color: #111827;
    --text-muted: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

/* Core Document Styles */
body {
    background: var(--bg-gradient);
    color: var(--text-color);
    font-family: var(--font-inter);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    transition: background 0.5s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
}

/* Background Glowing Canvas */
#bg-glow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

/* Relative index to display elements above the background canvas */
.relative-z, .navigation-bar, .page-content-wrapper, .footer-wrap {
    position: relative;
    z-index: 2;
}

/* Navigation Bar */
.navigation-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px var(--glass-shadow);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.logo-glow {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: 0.5px;
    transition: text-shadow 0.3s ease;
}

.logo-accent {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navigation-bar .nav-link {
    color: var(--text-color) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px !important;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.navigation-bar .nav-link:hover {
    opacity: 1;
    color: var(--secondary) !important;
}

/* Buttons System */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-outfit);
    padding: 10px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-premium-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-outfit);
    padding: 10px 24px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-premium-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    color: #fff;
}

.btn-premium-gradient:hover::before {
    opacity: 1;
}

.btn-circle-glass {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-circle-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}

/* Theme Icons Visibility */
html.dark .theme-icon-light { display: none; }
html.light .theme-icon-dark { display: none; }

/* Hero Wrapper */
.hero-wrap {
    min-height: 90vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.badge-glow {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--secondary);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
}

.hero-title-main {
    font-size: 4rem;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #cbd5e1 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.25);
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 750px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 10px 30px var(--glass-shadow);
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--secondary-rgb), 0.3) !important;
    box-shadow: 0 15px 35px rgba(var(--secondary-rgb), 0.15);
}

.card-icon {
    font-size: 2.5rem;
}

.card-title-glow {
    font-family: var(--font-outfit);
    color: #fff;
    margin-bottom: 12px;
}

/* Pricing Layout */
.relative-card {
    position: relative;
    overflow: visible;
}

.discount-pill {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
    z-index: 10;
}

.active-card {
    border-color: rgba(var(--primary-rgb), 0.4) !important;
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.2) !important;
}

.pro-border-glow {
    border: 1.5px solid var(--primary) !important;
}

.card-feature-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Dashboard Forms and Input Elements */
.glass-input, .glass-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-color) !important;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.glass-input:focus, .glass-textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.25);
    outline: none;
}

.btn-pill-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-pill-glass:hover, .btn-pill-glass.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.25);
}

/* Output window */
.glass-output {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    min-height: 120px;
    overflow-y: auto;
    font-family: var(--font-inter);
}

.glass-progress {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

/* Scrollbars styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Divider line decoration */
.glass-divider {
    border-top: 1px solid var(--glass-border);
    opacity: 1;
}

/* Footer Section */
.footer-wrap {
    padding: 40px 0;
}

/* Responsive Grid adaptations */
@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.5rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
}
