﻿@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --blueteq-blue: #186FB5;
    --danger-red: #d40000;
    --success-green: rgb(22 163 74);
    /* Light mode colors (default) */
    --bg-primary: #F4F9FD;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-color-light: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --input-bg: #ffffff;
    --input-border: #e5e7eb;
    --hover-bg: #f3f4f6;
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --input-bg: #334155;
    --input-border: #475569;
    --hover-bg: #475569;
}

/* High Contrast mode colors */
[data-theme="high-contrast"] {
    --blueteq-blue: #0066ff;
    --danger-red: #ff0000;
    --success-green: #00ff00;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-tertiary: #ffffff;
    --border-color: #ffffff;
    --border-color-light: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 0 0 2px #ffffff;
    --shadow-md: 0 0 0 3px #ffffff;
    --shadow-lg: 0 0 0 4px #ffffff;
    --input-bg: #000000;
    --input-border: #ffffff;
    --hover-bg: #333333;
}

    /* High contrast specific overrides for maximum readability */
    [data-theme="high-contrast"] * {
        font-weight: 600 !important;
    }

    [data-theme="high-contrast"] a {
        text-decoration: underline !important;
    }

    [data-theme="high-contrast"] button,
    [data-theme="high-contrast"] .btn-primary,
    [data-theme="high-contrast"] .btn-secondary {
        border: 3px solid #ffffff !important;
    }

    [data-theme="high-contrast"] input,
    [data-theme="high-contrast"] select,
    [data-theme="high-contrast"] textarea {
        border: 3px solid #ffffff !important;
    }

    [data-theme="high-contrast"] p,
    [data-theme="high-contrast"] span:not(.k-icon),
    [data-theme="high-contrast"] div:not([class*="k-"]) {
        color: #ffffff !important;
    }

    [data-theme="high-contrast"] h1,
    [data-theme="high-contrast"] h2,
    [data-theme="high-contrast"] h3,
    [data-theme="high-contrast"] h4,
    [data-theme="high-contrast"] h5,
    [data-theme="high-contrast"] h6 {
        color: #ffffff !important;
    }

*:not(i):not(span.k-icon):not(a.k-icon) {
    font-family: "Red Hat Display", serif !important;
}

/* Apply theme colors to body with smooth transitions */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html, body {
    overflow-x: hidden;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    margin: 0 !important;
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

#root, #__next {
    isolation: isolate;
}

.k-detail-row, .k-detail-cell {
    padding: 0 !important;
}

.text-white {
    color: #fff;
}

.hidden {
    display: none !important;
}

main.isUsingLegacy {
    padding: 4em 8em 4em 8em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
}