/* ============================================
   Design Tokens - 統一デザイントークン
   All CSS custom properties consolidated here.
   Sources: layout.css, nokkeru-design.css, guest.blade.php
   ============================================ */

:root {
    /* ---- Primary Colors ---- */
    --nk-primary: #1e3a5f;
    --nk-primary-hover: #2d4a6f;
    --nk-primary-light: #3d5a7f;
    --nk-primary-deep: #152d4d;

    /* Backward compat: --color-primary → --nk-primary */
    --color-primary: #1e3a5f;
    --color-primary-hover: #2d4a6f;
    --color-primary-light: #2d4a6f;
    --color-primary-deep: #152d4d;

    /* Accent (same as primary in this design) */
    --nk-accent: #1e3a5f;
    --nk-accent-hover: #2d4a6f;
    --nk-accent-glow: rgba(30, 58, 95, 0.18);
    --color-accent: #1e3a5f;
    --color-accent-hover: #2d4a6f;
    --color-accent-glow: rgba(30, 58, 95, 0.18);

    /* ---- Active/Selected State ---- */
    --nk-active-bg: #e8f4fc;
    --nk-active-text: #1e3a5f;

    /* ---- Surface Colors ---- */
    --nk-surface: #ffffff;
    --nk-surface-hover: #f8fafc;
    --nk-surface-muted: #f1f5f9;
    --color-surface: #ffffff;
    --color-surface-elevated: #f8fafc;
    --color-surface-hover: #f1f5f9;
    --color-sidebar: #ffffff;

    /* ---- Text Colors ---- */
    --nk-text-primary: #374151;
    --nk-text-secondary: #6b7280;
    --nk-text-muted: #9ca3af;
    --nk-text-inverse: #ffffff;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;

    /* ---- Border Colors ---- */
    --nk-border: #e5e7eb;
    --nk-border-light: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-focus: #cbd5e1;

    /* ---- Status Colors ---- */
    --nk-success: #10b981;
    --nk-warning: #f59e0b;
    --nk-danger: #ef4444;
    --nk-info: #06b6d4;
    --color-success: #10b981;
    --color-warning: #1e3a5f;
    --color-danger: #ef4444;
    --color-info: #06b6d4;
    --color-error: #ef4444;

    /* Status Light Backgrounds */
    --color-success-light: rgba(16, 185, 129, 0.1);
    --color-warning-light: rgba(245, 158, 11, 0.1);
    --color-danger-light: rgba(239, 68, 68, 0.1);
    --color-info-light: rgba(6, 182, 212, 0.1);
    --color-muted-light: rgba(156, 163, 175, 0.1);

    /* ---- Typography ---- */
    --font-heading: 'DM Serif Display', 'Noto Sans JP', serif;
    --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* ---- Spacing (layout.css px-based) ---- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 40px;

    /* Spacing (nokkeru px-based) */
    --nk-space-xs: 4px;
    --nk-space-sm: 8px;
    --nk-space-md: 16px;
    --nk-space-lg: 24px;
    --nk-space-xl: 32px;

    /* ---- Border Radius ---- */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --nk-radius-sm: 6px;
    --nk-radius-md: 8px;
    --nk-radius-lg: 12px;

    /* ---- Shadows ---- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --nk-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --nk-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --nk-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.08);

    /* ---- Transitions ---- */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;

    /* ---- Layout ---- */
    --navbar-height: 60px;
    --sidebar-width: 260px;

    /* ---- Bootstrap Override ---- */
    --bs-primary: #1e3a5f;
    --bs-primary-rgb: 30, 58, 95;
}

/* ---- Responsive Overrides ---- */

/* Desktop sidebar collapsed/expanded widths */
@media (min-width: 768px) {
    :root {
        --sidebar-collapsed-width: 56px;
        --sidebar-expanded-width: 220px;
    }
}

/* Mobile navbar height */
@media (max-width: 767.98px) {
    :root {
        --navbar-height: 52px;
    }
}
