/* 
  NextAISense Theme Overrides
  Import this file AFTER globals.css in layout.tsx
*/

:root {
    /* NextAISense Custom Vars */
    --nextaisense-bg-gradient: linear-gradient(to bottom, #FFFFFF, #F0F4FF);
    --nextaisense-card-bg: rgba(255, 255, 255, 0.8);
    --nextaisense-border: rgba(0, 0, 0, 0.1);

    /* Theme Overrides (Light Mode) */
    /* Using standard colors to ensure compatibility */
    --background: #FFFFFF;
    --foreground: #0F172A;
    /* Slate-900 */

    --card: #FFFFFF;
    --card-foreground: #0F172A;

    --popover: #FFFFFF;
    --popover-foreground: #0F172A;

    --primary: #4F46E5;
    /* Indigo-600 */
    --primary-foreground: #FFFFFF;

    --secondary: #F1F5F9;
    /* Slate-100 */
    --secondary-foreground: #0F172A;

    --muted: #F1F5F9;
    --muted-foreground: #64748B;
    /* Slate-500 */

    --accent: #F1F5F9;
    --accent-foreground: #0F172A;

    --destructive: #EF4444;
    --destructive-foreground: #FFFFFF;

    --border: #E2E8F0;
    /* Slate-200 */
    --input: #E2E8F0;
    --ring: #4F46E5;

    --radius: 0.5rem;
}

.dark {
    /* NextAISense Custom Vars (Dark Mode) */
    --nextaisense-bg-gradient: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #020617 100%);
    --nextaisense-card-bg: rgba(30, 41, 59, 0.4);
    --nextaisense-border: rgba(255, 255, 255, 0.1);

    /* Theme Overrides (Dark Mode) */
    --background: #020617;
    /* Slate-950 */
    --foreground: #F8FAFC;
    /* Slate-50 */

    --card: #0F172A;
    /* Slate-900 */
    --card-foreground: #F8FAFC;

    --popover: #0F172A;
    --popover-foreground: #F8FAFC;

    --primary: #6366F1;
    /* Indigo-500 */
    --primary-foreground: #FFFFFF;

    --secondary: #1E293B;
    /* Slate-800 */
    --secondary-foreground: #F8FAFC;

    --muted: #1E293B;
    --muted-foreground: #94A3B8;
    /* Slate-400 */

    --accent: #1E293B;
    --accent-foreground: #F8FAFC;

    --destructive: #7F1D1D;
    --destructive-foreground: #F8FAFC;

    --border: #1E293B;
    /* Slate-800 */
    --input: #1E293B;
    --ring: #6366F1;

    /* Sidebar Overrides */
    --sidebar: #020617;
    --sidebar-foreground: #F8FAFC;
    --sidebar-primary: #6366F1;
    --sidebar-primary-foreground: #FFFFFF;
    --sidebar-accent: #1E293B;
    --sidebar-accent-foreground: #F8FAFC;
    --sidebar-border: #1E293B;
    --sidebar-ring: #6366F1;
}

/* Galaxium Custom Utilities */

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background-color: var(--card);
    /* Fallback */
    background: rgba(255, 255, 255, 0.8);
    /* Light mode glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.6);
    /* Dark mode glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #A78BFA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Components */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    /* px-3 py-2 */
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
    /* Mimic ring-2 */
}

.form-input::placeholder {
    color: var(--muted-foreground);
    opacity: 1;
}

/* Button Components */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    /* px-4 py-2.5 */
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-foreground);
    background-color: var(--primary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:focus {
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    /* px-4 py-2 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    color: var(--secondary-foreground);
    background-color: var(--secondary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    opacity: 0.8;
}

.btn-secondary:focus {
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--secondary);
    /* mimic focus ring */
}