@font-face {
    font-family: Roboto;
    src: url("/vendor/roboto/Roboto.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /*
     * Conference Connect / PCIM India design tokens.
     * Keep shared visual decisions here; page styles belong in main.css.
     */

    /* --- Brand --- */
    /* Solid colours sampled from the supplied PCIM conference logo. */
    --primary: #00a07a;
    --primary-strong: #00795e;
    --primary-dark: #006d53;
    --primary-soft: #e7f5ef;
    --primary-soft-border: #c6e6d9;
    --brand-accent: #e80d32;
    --brand-accent-dark: #b91735;
    --brand-accent-soft: #fff0f2;

    /* --- Neutral & Surface Colors --- */
    --bg-body: #fff;
    --bg-surface: #ffffff;
    --bg-alt: #f3f3f3;
    --bg-soft: var(--primary-soft);
    --brand-deep: #004232;
    --bg-hover: #e5f5f0;
    --bg-inverse: #153d32;
    --bg-glass: var(--bg-surface);
    
    /* --- Text Colors --- */
    --text-main: #303030;
    --text-muted: #555;
    --text-light: #626262;
    --text-inverse: #ffffff;
    --text-link: var(--primary-dark);
    
    /* --- Borders & Dividers --- */
    --border-light: #dedede;
    --border-main: #d8d8d8;
    --border-dark: #767676;
    --border-focus: var(--primary-strong);

    /* --- Feedback --- */
    --success: #217a5b;
    --success-soft: #eaf7f1;
    --warning: #946200;
    --warning-soft: #fff7e5;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --info: #146b8c;
    --info-soft: #edf8fc;

    /* --- Badge / Role Colors --- */
    --badge-organizer: #EE3050;
    --badge-speaker: #005CA9;
    --badge-panelist: #006C4C;
    --badge-moderator: var(--badge-panelist);
    --badge-session-chair: var(--badge-panelist);
    --badge-tutorial-instructor: var(--badge-speaker);
    --badge-tutorial-participant: #373435;
    --badge-service: #374151;
    --badge-foreground: #FFFFFF;
    --badge-ink: #000000;
    --badge-vip: #d94892;
    --badge-media: var(--badge-speaker);
    --badge-delegate: var(--badge-speaker);
    --badge-partner: var(--badge-speaker);
    --badge-sponsor: var(--badge-speaker);

    /* --- Typography --- */
    --font-sans: Roboto, Arial, sans-serif;
    --font-heading: var(--font-sans);
    --font-size-base: 16px;
    --line-height-body: 1.65;
    --line-height-heading: 1.2;
    
    /* Font Weights (Adjusted to your 600/700 preference) */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* --- Shape, elevation & layout --- */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-pill: 0px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-focus: 0 0 0 4px rgba(0, 121, 94, .2);
    --content-max-width: 1200px;
    --control-height: 48px;
    --control-height-compact: 44px;
    --transition-fast: 180ms ease;
    --gradient-page: var(--bg-body);
    --gradient-feature: var(--bg-alt);
    --gradient-action: var(--primary-dark);
    --gradient-blush: var(--brand-accent-soft);
    --space-card: clamp(20px, 3vw, 32px);
    /* Neutral website-permission dialog, separate from conference branding. */
    --prompt-bg: #ffffff;
    --prompt-text: #202124;
    --prompt-muted: #5f6368;
    --prompt-border: #dadce0;
    --prompt-soft: #f1f3f4;
    --prompt-backdrop: rgba(0, 0, 0, .4);
    --prompt-shadow: 0 18px 64px rgba(0, 0, 0, .22);
    --bs-primary-rgb: 0, 121, 94;
    --bs-success-rgb: 0, 121, 94;
    --bs-border-radius: 0px;
    --bs-border-radius-sm: 0px;
    --bs-border-radius-lg: 0px;
    --bs-border-radius-xl: 0px;
    --bs-border-radius-xxl: 0px;
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--text-main);
    --bs-body-bg: var(--bg-body);
    --bs-border-color: var(--border-main);
    --bs-link-color: var(--primary-dark);
    --bs-link-hover-color: var(--primary-strong);
    --bs-secondary-color: var(--text-muted);
}

/* =========================================================
   Shared foundation
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--text-link);
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-strong);
}

:where(h1, h2, h3, h4, h5, h6) {
    margin-top: 0;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--line-height-heading);
}

:where(p, ul, ol) {
    margin-top: 0;
}

:where(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--primary-strong);
    outline-offset: 3px;
    box-shadow: var(--shadow-focus);
}

/* Common content frame used by new and existing screens. */
.app-container {
    width: min(100% - 32px, var(--content-max-width));
    margin-inline: auto;
}

/* Shared surface primitives. */
.app-card,
.surface-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Bootstrap-compatible controls with one project-wide treatment. */
:where(.form-control, .form-select, .form-check-input) {
    border-color: var(--border-dark);
}

:where(.form-control, .form-select) {
    min-height: var(--control-height);
    color: var(--text-main);
    background-color: var(--bg-surface);
    border-radius: var(--radius-sm);
}

:where(.form-control, .form-select):focus {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-focus);
}

:where(.form-control, .form-select)::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.form-label {
    margin-bottom: 6px;
    color: var(--text-main);
    font-weight: var(--fw-medium);
}

.btn,
button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: var(--control-height);
    border-radius: var(--radius-sm);
    font-weight: var(--fw-medium);
    line-height: 1.25;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary,
.btn-success {
    background: var(--gradient-action);
    border-color: var(--primary-strong);
    color: var(--text-inverse);
}

:where(.btn-primary, .btn-success):hover,
:where(.btn-primary, .btn-success):focus-visible {
    background-color: var(--primary-strong);
    border-color: var(--primary-strong);
    color: var(--text-inverse);
}

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background-color: var(--primary-soft);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

:where(.badge, .status-badge) {
    border-radius: var(--radius-pill);
    font-weight: var(--fw-medium);
    letter-spacing: .01em;
}

:where(table) {
    width: 100%;
    border-color: var(--border-main);
    color: var(--text-main);
}

:where(table thead th) {
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: .8125rem;
    font-weight: var(--fw-semibold);
    letter-spacing: .035em;
    text-transform: uppercase;
}

:where(table th, table td) {
    padding: 12px 16px;
    vertical-align: middle;
}

:where(.alert) {
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 575.98px) {
    .app-container {
        width: min(100% - 24px, var(--content-max-width));
    }
}
