/* ===============================================================================
   TL-TOKENS.CSS - Design Tokens
   Single source of truth for colors, typography, spacing, shadows, and more.
   All other modules reference these variables for consistency.
   =============================================================================== */

:root {
  /* -- Color System ----------------------------------------------------------- */

  /* Primary */
  --tl-primary: #007bff;
  --tl-primary-dark: #0056b3;
  --tl-primary-light: #e7f1ff;
  --tl-primary-rgb: 0, 123, 255;

  /* Brand Accent */
  --tl-accent: #e84c3d;
  --tl-accent-dark: #c73a2f;
  --tl-accent-light: #fef2f1;

  /* Sky (used in nav, CTAs) */
  --tl-sky: #38bdf8;
  --tl-sky-dark: #0ea5e9;
  --tl-sky-light: #e0f2fe;

  /* Status */
  --tl-success: #28a745;
  --tl-success-dark: #1e7e34;
  --tl-success-light: #d4edda;

  --tl-warning: #ffc107;
  --tl-warning-dark: #e0a800;
  --tl-warning-light: #fff3cd;

  --tl-danger: #dc3545;
  --tl-danger-dark: #bd2130;
  --tl-danger-light: #f8d7da;

  --tl-info: #17a2b8;
  --tl-info-dark: #117a8b;
  --tl-info-light: #d1ecf1;

  /* Neutrals */
  --tl-gray-50: #f9fafb;
  --tl-gray-100: #f3f4f6;
  --tl-gray-200: #e5e7eb;
  --tl-gray-300: #d1d5db;
  --tl-gray-400: #9ca3af;
  --tl-gray-500: #6b7280;
  --tl-gray-600: #4b5563;
  --tl-gray-700: #374151;
  --tl-gray-800: #1f2937;
  --tl-gray-900: #111827;

  /* Semantic */
  --tl-body-bg: #ffffff;
  --tl-body-color: #212529;
  --tl-heading-color: #0f172a;
  --tl-muted: #64748b;
  --tl-border: #e2e8f0;
  --tl-surface: #ffffff;
  --tl-surface-alt: #f8fafc;

  /* Dark backgrounds (nav, hero, footer) */
  --tl-dark-bg: #0f172a;
  --tl-dark-bg-alt: #1e293b;
  --tl-dark-surface: rgba(255, 255, 255, 0.05);
  --tl-dark-border: rgba(148, 163, 184, 0.1);
  --tl-dark-text: #e2e8f0;
  --tl-dark-muted: #94a3b8;

  /* -- Typography ------------------------------------------------------------- */

  --tl-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --tl-font-heading: "Raleway", var(--tl-font-sans);
  --tl-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --tl-text-xs: 0.75rem;     /* 12px */
  --tl-text-sm: 0.875rem;    /* 14px */
  --tl-text-base: 1rem;      /* 16px */
  --tl-text-lg: 1.125rem;    /* 18px */
  --tl-text-xl: 1.25rem;     /* 20px */
  --tl-text-2xl: 1.5rem;     /* 24px */
  --tl-text-3xl: 1.875rem;   /* 30px */
  --tl-text-4xl: 2.25rem;    /* 36px */

  --tl-weight-normal: 400;
  --tl-weight-medium: 500;
  --tl-weight-semibold: 600;
  --tl-weight-bold: 700;
  --tl-weight-extrabold: 800;

  --tl-leading-tight: 1.15;
  --tl-leading-snug: 1.35;
  --tl-leading-normal: 1.5;
  --tl-leading-relaxed: 1.7;

  /* -- Spacing Scale (4px base) ----------------------------------------------- */

  --tl-space-0: 0;
  --tl-space-1: 0.25rem;   /* 4px */
  --tl-space-2: 0.5rem;    /* 8px */
  --tl-space-3: 0.75rem;   /* 12px */
  --tl-space-4: 1rem;      /* 16px */
  --tl-space-5: 1.25rem;   /* 20px */
  --tl-space-6: 1.5rem;    /* 24px */
  --tl-space-8: 2rem;      /* 32px */
  --tl-space-10: 2.5rem;   /* 40px */
  --tl-space-12: 3rem;     /* 48px */
  --tl-space-16: 4rem;     /* 64px */
  --tl-space-20: 5rem;     /* 80px */

  /* -- Border Radius ---------------------------------------------------------- */

  --tl-radius-sm: 4px;
  --tl-radius-md: 8px;
  --tl-radius-lg: 12px;
  --tl-radius-xl: 16px;
  --tl-radius-2xl: 20px;
  --tl-radius-full: 9999px;

  /* -- Shadows ---------------------------------------------------------------- */

  --tl-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --tl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --tl-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --tl-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --tl-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --tl-shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --tl-shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);

  /* -- Z-Index Scale ---------------------------------------------------------- */

  --tl-z-dropdown: 100;
  --tl-z-sticky: 200;
  --tl-z-nav: 500;
  --tl-z-overlay: 900;
  --tl-z-modal: 1000;
  --tl-z-toast: 1100;
  --tl-z-loader: 9999;

  /* -- Transitions ------------------------------------------------------------ */

  --tl-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --tl-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --tl-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --tl-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --tl-duration-fast: 150ms;
  --tl-duration-base: 200ms;
  --tl-duration-slow: 300ms;
  --tl-duration-slower: 500ms;

  /* -- Breakpoints (reference only - use in media queries) -------------------- */
  /* xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, 2xl: 1400px */

  /* -- Container Widths ------------------------------------------------------- */

  --tl-container-sm: 540px;
  --tl-container-md: 720px;
  --tl-container-lg: 960px;
  --tl-container-xl: 1140px;
  --tl-container-2xl: 1320px;
}

/* -- Dark Mode Token Overrides ------------------------------------------------ */

[data-theme="dark"] {
  --tl-body-bg: #0f172a;
  --tl-body-color: #e2e8f0;
  --tl-heading-color: #f1f5f9;
  --tl-muted: #94a3b8;
  --tl-border: rgba(148, 163, 184, 0.15);
  --tl-surface: #1e293b;
  --tl-surface-alt: #0f172a;
}

/* -- Bootstrap Compatibility Bridge ------------------------------------------- */
/* Maps Bootstrap's --variables to our token system for gradual migration */

:root {
  --primary: var(--tl-primary);
  --success: var(--tl-success);
  --info: var(--tl-info);
  --warning: var(--tl-warning);
  --danger: var(--tl-danger);
}

/* -- Gradient Presets --------------------------------------------------------- */

:root {
  --tl-gradient-hero: linear-gradient(135deg, var(--tl-dark-bg) 0%, #1e3a5f 50%, var(--tl-dark-bg) 100%);
  --tl-gradient-cta: linear-gradient(135deg, #0284c7 0%, var(--tl-dark-bg) 100%);
  --tl-gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --tl-gradient-card-purple: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

/* -- Opacity Presets ---------------------------------------------------------- */

:root {
  --tl-opacity-disabled: 0.5;
  --tl-opacity-hover: 0.08;
  --tl-opacity-overlay: 0.5;
  --tl-opacity-backdrop: 0.95;

  /* -- Interview Questions Page Variables ------------------------------------ */
  --iq-badge-bg: rgba(56, 189, 248, 0.1);
  --iq-badge-border: rgba(56, 189, 248, 0.3);
  --iq-badge-color: #38bdf8;
  --iq-hero-glow: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  --iq-card-border-hover: #38bdf8;
  --iq-card-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
  --iq-num-bg: #e0f2fe;
  --iq-num-color: #0284c7;
}


/*!
 * ============================================================================
 * Tutorials Logic - Base Stylesheet
 * https://www.tutorialslogic.com
 * Copyright (c) 2015-2026 Tutorials Logic. All Rights Reserved.
 *
 * Foundation layer: Reset, Grid, Typography, Forms, Buttons, Utilities, Components
 * Design tokens: see tl-tokens.css
 * ============================================================================
 */

/* -- Modern CSS Enhancements (layered on top of Bootstrap 4 base) ----------- */

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Modern focus-visible (replaces outline:none hacks) */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--tl-sky);
  outline-offset: 2px;
}

/* Better selection colors */
::selection {
  background: rgba(56, 189, 248, 0.2);
  color: inherit;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--tl-space-4);
  z-index: var(--tl-z-loader);
  padding: var(--tl-space-2) var(--tl-space-4);
  background: var(--tl-sky);
  color: var(--tl-dark-bg);
  font-weight: var(--tl-weight-bold);
  border-radius: var(--tl-radius-md);
  text-decoration: none;
  transition: top var(--tl-duration-base);
}
.skip-link:focus {
  top: var(--tl-space-2);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--tl-gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--tl-gray-400);
  border-radius: var(--tl-radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--tl-gray-500); }

/* -- Bootstrap 4 Foundation ------------------------------------------------- */

/* =============================================================================
 * RESET, GRID, TYPOGRAPHY, TABLES, FORMS, BUTTONS, UTILITIES, COMPONENTS
 * Bootstrap 4 base - grid system, components, utilities
 * ============================================================================= */

:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace:
        SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*,
::after,
::before {
    box-sizing: border-box;
}
html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}
article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}
body {
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--tl-body-color);
    text-align: left;
    background-color: var(--tl-body-bg);
}
[tabindex="-1"]:focus {
    outline: 0 !important;
}
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
p {
    margin-top: 0;
    margin-bottom: 1rem;
}
abbr[data-original-title],
abbr[title] {
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: 0;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
}
address {
    margin-bottom: 1rem;
    font-style: normal;
    line-height: inherit;
}
dl,
ol,
ul {
    margin-top: 0;
    margin-bottom: 1rem;
}
ol ol,
ol ul,
ul ol,
ul ul {
    margin-bottom: 0;
}
dt {
    font-weight: 700;
}
dd {
    margin-bottom: 0.5rem;
    margin-left: 0;
}
blockquote {
    margin: 0 0 1rem;
}
b,
strong {
    font-weight: bolder;
}
small {
    font-size: 80%;
}
sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}
a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}
a:not([href]):not([tabindex]) {
    color: inherit;
    text-decoration: none;
}
a:not([href]):not([tabindex]):focus,
a:not([href]):not([tabindex]):hover {
    color: inherit;
    text-decoration: none;
}
a:not([href]):not([tabindex]):focus {
    outline: 0;
}
code,
kbd,
pre,
samp {
    font-family:
        SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
}
pre {
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
}
figure {
    margin: 0 0 1rem;
}
img {
    vertical-align: middle;
    border-style: none;
}
svg {
    overflow: hidden;
    vertical-align: middle;
}
table {
    border-collapse: collapse;
}
caption {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #6c757d;
    text-align: left;
    caption-side: bottom;
}
th {
    text-align: inherit;
}
label {
    display: inline-block;
    margin-bottom: 0.5rem;
}
button {
    border-radius: 0;
}
button:focus {
    outline: 1px dotted;
    outline: 5px auto -webkit-focus-ring-color;
}
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
button,
input {
    overflow: visible;
}
button,
select {
    text-transform: none;
}
select {
    word-wrap: normal;
}
[type="button"],
[type="reset"],
[type="submit"],
button {
    -webkit-appearance: button;
}
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
    padding: 0;
    border-style: none;
}
input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
    -webkit-appearance: listbox;
}
textarea {
    overflow: auto;
    resize: vertical;
}
fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}
legend {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: inherit;
    color: inherit;
    white-space: normal;
}
progress {
    vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}
[type="search"] {
    outline-offset: -2px;
    -webkit-appearance: none;
}
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}
output {
    display: inline-block;
}
summary {
    display: list-item;
    cursor: pointer;
}
template {
    display: none;
}
[hidden] {
    display: none !important;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}
.h1,
h1 {
    font-size: 2.5rem;
}
.h2,
h2 {
    font-size: 2rem;
}
.h3,
h3 {
    font-size: 1.75rem;
}
.h4,
h4 {
    font-size: 1.5rem;
}
.h5,
h5 {
    font-size: 1.25rem;
}
.h6,
h6 {
    font-size: 1rem;
}
.lead {
    font-size: 1.25rem;
    font-weight: 300;
}
.display-1 {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1.2;
}
.display-2 {
    font-size: 5.5rem;
    font-weight: 300;
    line-height: 1.2;
}
.display-3 {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.2;
}
.display-4 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}
hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.small,
small {
    font-size: 80%;
    font-weight: 400;
}
.mark,
mark {
    padding: 0.2em;
    background-color: #fcf8e3;
}
.list-unstyled {
    padding-left: 0;
    list-style: none;
}
.list-inline {
    padding-left: 0;
    list-style: none;
}
.list-inline-item {
    display: inline-block;
}
.list-inline-item:not(:last-child) {
    margin-right: 0.5rem;
}
.blockquote-footer {
    display: block;
    font-size: 80%;
    color: #495057;
}
.blockquote-footer::before {
    content: "\2014\00A0";
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    max-width: 100%;
    height: auto;
}
.figure-img {
    margin-bottom: 0.5rem;
    line-height: 1;
}
.figure-caption {
    font-size: 90%;
    color: #495057;
}
code {
    font-size: 87.5%;
    color: #e83e8c;
    word-break: break-word;
}
a > code {
    color: inherit;
}
kbd {
    padding: 0.2rem 0.4rem;
    font-size: 87.5%;
    color: #fff;
    background-color: #212529;
    border-radius: 0.2rem;
}
kbd kbd {
    padding: 0;
    font-size: 100%;
    font-weight: 700;
}
pre {
    display: block;
    font-size: 87.5%;
    color: #212529;
}
pre code {
    font-size: inherit;
    color: inherit;
    word-break: normal;
}
.pre-scrollable {
    max-height: 340px;
    overflow-y: scroll;
}
