/* Base Variables */
:root {
    --color-primary: #0055ff;
    --color-accent: #80ff00;
    --color-accent-blue: #00d4ff;
    --color-background-light: #f7f8f5;
    --color-background-dark: #0a0c08;
    --color-card-dark: #161b12;
    --color-text-main: #141d0c;
    --color-text-muted: #64748b;
    --color-border-light: #dbeacd;
    --color-border-dark: #2d3a1f;
}

[data-theme="business"] {
    /* --color-primary: #80ff00; */
    --color-accent: #003ab0;
    --color-background-light: #f7f8f5;
}

/* Dark Mode Variables Override */
.dark {
    --color-background-light: #0a0c08;
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    --color-border-light: #2d3a1f;
}

body {
    font-family: 'Spline Sans', sans-serif;
    background-color: var(--color-background-light);
    color: var(--color-text-main);
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
}

/* Background Pattern - REMOVED per request */
.bg-pattern {
    background-color: var(--color-background-light);
    /* Background image removed */
    transition: background-color 0.5s ease;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border-light);
    padding: 1rem 1.5rem;
    /* py-4 px-6 */
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s, border-color 0.3s;
}

.dark .page-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .page-header {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Card Container */
.card-container {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 1.5rem;
    /* rounded-3xl */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 2rem;
    /* p-8 */
    border: 1px solid #f8fafc;
    transition: all 0.3s;
    margin: 0 auto;
}

.dark .card-container {
    background-color: var(--color-card-dark);
    /* #161b12 */
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .card-container {
        padding: 3rem;
    }
}

/* Typography */
.heading-primary {
    color: var(--color-text-main);
    letter-spacing: -0.025em;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    padding-bottom: 0.75rem;
    font-family: 'Spline Sans', sans-serif;
    transition: all 0.3s;
}

.subheading {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    font-weight: 400;
    transition: all 0.3s;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    margin-left: 0.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.dark .form-label {
    color: #cbd5e1;
    /* slate-300 */
}

.link-text {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.link-text:hover {
    text-decoration: underline;
}

.legal-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    line-height: 1.625;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    /* Often text on primary is black if primary is lime, but white if primary is blue */
    font-weight: 700;
    padding: 1.125rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(128, 255, 0, 0.3);
    /* box-shadow: 0 20px 25px -5px rgba(0, 58, 176, 0.3); */
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Dynamic text color adjustment for buttons based on theme? 
   Currently handled by raw CSS classes in some places, but here we assume white text.
   If primary becomes Lime (#80ff00), text should be black for contrast.
*/
[data-theme="business"] .btn-primary {
    /* Dark text on Lime background */
    box-shadow: 0 20px 25px -5px rgba(128, 255, 0, 0.3);
}

.btn-primary:hover {
    filter: brightness(0.9);
}

.btn-header {
    display: flex;
    min-width: 84px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    height: 2.75rem;
    padding: 0 1.5rem;
    background-color: #f1f5f9;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.dark .btn-header {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-header:hover {
    background-color: var(--color-accent);
    color: #0f172a;
    /* Ensure text is readable on accent */
}

/* Inputs */
.input-group {
    position: relative;
    width: 100%;
}

.input-field {
    width: 100%;
    padding-right: 3.5rem;
    padding-left: 1rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background-color: rgba(248, 250, 252, 0.5);
    /* Light mode bg */
    font-size: 1rem;
    color: var(--color-text-main);
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.dark .input-field {
    background-color: var(--color-background-light);
    /* mapped to dark bg #0a0c08 */
    border-color: #1e293b;
    /* slate-800 or similar */
    color: white;
}

.dark .input-field::placeholder {
    color: #475569;
    /* slate-600 */
}

.input-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary), transparent 90%);
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-icon {
    position: absolute;
    right: 1.2rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.5rem;
    pointer-events: none;
    transition: color 0.3s;
    font-family: 'Material Symbols Outlined';
}

.input-group:focus-within .input-icon {
    color: var(--color-primary);
}

/* Toggle Switch */
.toggle-container {
    display: inline-flex;
    background-color: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.75rem;
    position: relative;
    transition: background-color 0.3s;
}

.dark .toggle-container {
    background-color: rgba(255, 255, 255, 0.05);
    /* Dark mode toggle container */
}

.toggle-glider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
    z-index: 0;
    transform: translateX(0);
}

.dark .toggle-glider {
    background-color: #27272a;
    /* Zinc-800ish for dark mode glider */
}

.btn-toggle-option {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: color 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
}

.btn-toggle-option.active {
    color: var(--color-primary);
}

.accent-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Custom focus style for inputs */
.otp-input:focus {
    border-color: #003bb2 !important;
    box-shadow: 0 0 0 2px rgba(0, 59, 178, 0.1);
    outline: none;
}

/* Material Symbols Font Settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fun-shape-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #77ff00;
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
}

.fun-shape-2 {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: #77ff00;
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

/* Dashboards Business */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

#reader {
    border: none !important;
}

#reader video {
    border-radius: 1rem;
}

#reader__scan_region {
    background: #f7f8f5;
    border-radius: 1rem;
}

.dark #reader__scan_region {
    background: #19230f;
}