/**
 * Koningo Core Public Design System
 * Provides Glassmorphism effects and modern utility classes for the frontend.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --kon-sky-400: #38bdf8;
    --kon-sky-500: #0ea5e9;
    --kon-sky-600: #0284c7;
    --kon-slate-50: #f8fafc;
    --kon-slate-100: #f1f5f9;
    --kon-slate-200: #e2e8f0;
    --kon-slate-300: #cbd5e1;
    --kon-slate-400: #94a3b8;
    --kon-slate-500: #64748b;
    --kon-slate-800: #1e293b;
    --kon-slate-900: #0f172a;
    --kon-red-400: #f87171;
    --kon-indigo-500: #6366f1;
}

body {
    color: white;
    background: #0f172a;
    background-image: radial-gradient(circle at 20% 20%, #1e293b 0%, #0f172a 100%);
}

/* Base Typo */
.kon-card {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Logic - High Fidelity Sync */
.kon-glass-card {
    background: rgba(15, 23, 42, 0.85);
    /* Darker and more solid */
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    /* Subtle inner highlight */
}

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

/* Utility: Layout & Sizing */
.w-full {
    width: 100%;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Utility: Flex & Grid */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Utility: Shadows & Effects */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.shadow-sky-500\/20 {
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.kon-vibrant-bg {
    background: #0f172a;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    background-attachment: fixed;
}

/* Utility: Padding & Margin */
.p-6 {
    padding: 1.5rem;
}

.p-10 {
    padding: 2.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.m-0 {
    margin: 0;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

/* Utility: Backgrounds */
.bg-slate-900\/40 {
    background-color: rgba(15, 23, 42, 0.4);
}

.bg-slate-800\/50 {
    background-color: rgba(30, 41, 59, 0.5);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-sky-500 {
    background-color: var(--kon-sky-500);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--kon-sky-400), var(--kon-indigo-500));
}

/* Utility: Borders */
.border {
    border-style: solid;
    border-width: 1px;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-t {
    border-top-style: solid;
    border-top-width: 1px;
}

.border-b {
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.border-0 {
    border-width: 0;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-\[32px\] {
    border-radius: 32px;
}

/* Utility: Colors & Text */
.text-white {
    color: #ffffff;
}

.text-slate-100 {
    color: var(--kon-slate-100);
}

.text-slate-200 {
    color: var(--kon-slate-200);
}

.text-slate-300 {
    color: var(--kon-slate-300);
}

.text-slate-400 {
    color: var(--kon-slate-400);
}

.text-slate-500 {
    color: var(--kon-slate-500);
}

.text-sky-400 {
    color: var(--kon-sky-400);
}

.text-sky-500 {
    color: var(--kon-sky-500);
}

.text-red-400 {
    color: var(--kon-red-400);
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-\[10px\] {
    font-size: 10px;
}

.text-\[11px\] {
    font-size: 11px;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

.no-underline {
    text-decoration: none;
}

/* Interactive States */
.hover\:bg-sky-400:hover {
    background-color: var(--kon-sky-400);
}

.hover\:bg-white\/20:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.cursor-pointer {
    cursor: pointer;
}

/* 
 * Premium Components (Shared Design Language)
 * These classes provide the exact "finish" across the ecosystem.
 */

.kon-premium-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 3rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}



/* Animations */
.kon-fade-up {
    animation: konFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes konFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy & Utility Overrides */
.kon-logo-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.kon-logo-circle {
    width: 90px;
    height: 90px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.absolute {
    position: absolute;
    right: 12px;
    top: 15px;
}

.kon-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.kon-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--kon-sky-500);
    border-radius: 4px;
    cursor: pointer;
}

.kon-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.kon-input-wrapper input {
    padding-left: 16px !important;
}

@media (max-width: 640px) {
    .sm\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .col-span-2 {
        grid-column: span 2 / span 2;
    }
}