:root {
    --iteq-bg: #f4f7ff;
    --iteq-panel: #ffffff;
    --iteq-panel-soft: #edf3ff;
    --iteq-border: #d8e2ff;
    --iteq-text: #111b33;
    --iteq-muted: #6b7692;
    --iteq-sidebar: #061433;
    --iteq-sidebar-border: #12234f;
    --iteq-primary: #2563eb;
    --iteq-primary-strong: #1f53e7;
    --iteq-primary-soft: #dce9ff;
    --iteq-success: #1f9a68;
    --iteq-danger: #d14545;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.iteq-body {
    background: radial-gradient(circle at 16% -20%, #dbe8ff 0%, var(--iteq-bg) 42%, #f8faff 100%);
    color: var(--iteq-text);
    font-family: "Manrope", "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.iteq-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.iteq-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #071535 0%, #071229 100%);
    color: #d6e0ff;
    border-right: 1px solid var(--iteq-sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.iteq-brand {
    padding: 20px 18px;
    border-bottom: 1px solid var(--iteq-sidebar-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.iteq-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(145deg, #f7fbff 0%, #dbe9ff 100%);
    border: 1px solid rgba(151, 181, 235, 0.55);
    box-shadow: 0 10px 22px rgba(4, 15, 42, 0.42);
    padding: 5px;
}

.iteq-brand-word {
    font-weight: 700;
    font-size: 15px;
    color: #f5f8ff;
    letter-spacing: 0.02em;
}

.iteq-brand-sub {
    font-size: 12px;
    color: #99abd9;
}

.iteq-nav {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
}

.iteq-nav-link {
    border-radius: 10px;
    color: #c3d1f7;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.iteq-nav-link:hover {
    color: #f4f8ff;
    background: rgba(66, 113, 235, 0.2);
    border-color: rgba(102, 143, 255, 0.28);
}

.iteq-nav-link-active {
    color: #ffffff;
    background: linear-gradient(90deg, #245ef2 0%, #2a6cf5 100%);
    border-color: #3d7fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.iteq-nav-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--iteq-sidebar-border);
}

.iteq-main {
    flex: 1;
    overflow-y: auto;
}

.iteq-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(248, 251, 255, 0.92);
    border-bottom: 1px solid #d9e5ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
}

.iteq-breadcrumb {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #425178;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}

.iteq-breadcrumb::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2c72fa 0%, #4b8cff 100%);
}

.iteq-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d9e5ff;
    padding: 6px 12px 6px 6px;
    box-shadow: 0 4px 16px rgba(30, 66, 150, 0.08);
}

.iteq-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(145deg, #63a6ff 0%, #2b6cf5 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.iteq-content {
    padding: 26px 28px 36px 28px;
}

.iteq-message {
    border-radius: 12px;
    border: 1px solid #d0dfff;
    background: #eff5ff;
    color: #24458b;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 14px;
}

.iteq-message.success {
    background: #ecfbf4;
    border-color: #bbead2;
    color: #17784f;
}

.iteq-message.error {
    background: #fff0f0;
    border-color: #ffc9c9;
    color: #af2d2d;
}

.iteq-message.warning {
    background: #fff8e8;
    border-color: #ffe3ae;
    color: #8f6a09;
}

.hero-blue {
    background: linear-gradient(104deg, #3b87ff 0%, #2564eb 45%, #1f53e7 100%);
    border-radius: 22px;
    padding: 34px 30px;
    color: #f3f8ff;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-blue p {
    color: #deebff;
}

.surface-panel {
    background: var(--iteq-panel);
    border: 1px solid var(--iteq-border);
    border-radius: 16px;
}

.panel-soft {
    background: var(--iteq-panel-soft);
    border: 1px solid #c7dcff;
    border-radius: 16px;
}

.btn-primary {
    background: linear-gradient(92deg, #2b70f6 0%, #1f53e7 100%);
    color: #fff;
    border: 1px solid #2f6eff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #2a3a64;
    border: 1px solid #c7d8ff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.btn-dark {
    background: #081a42;
    color: #e4ecff;
    border: 1px solid #1a2e5f;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
}

.iteq-logo-surface {
    background: linear-gradient(145deg, #f8fbff 0%, #dceaff 100%);
    border: 1px solid rgba(134, 172, 239, 0.5);
    box-shadow: 0 10px 20px rgba(25, 66, 144, 0.22);
}

.iteq-logo-surface-on-brand {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(227, 239, 255, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 24px rgba(4, 15, 42, 0.3);
}

.iteq-select-shell {
    position: relative;
    width: 100%;
}

.iteq-native-select {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: 0;
    border: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
}

.iteq-select-trigger {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfdcff;
    border-radius: 10px;
    background: #ffffff;
    padding: 9px 12px;
    color: #1d2d54;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}

.iteq-select-trigger:hover {
    border-color: #a9c0ee;
}

.iteq-select-trigger:focus-visible,
.iteq-select-shell.open .iteq-select-trigger {
    outline: none;
    border-color: #4a81f7;
    box-shadow: 0 0 0 3px rgba(74, 129, 247, 0.15);
}

.iteq-select-value {
    min-width: 0;
    flex: 1;
}

.iteq-select-option-content {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.iteq-select-option-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iteq-select-trigger.is-placeholder .iteq-select-option-text {
    color: #8a97b6;
    font-weight: 500;
}

.iteq-select-arrow {
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid #6e80a8;
    border-bottom: 2px solid #6e80a8;
    transform: rotate(45deg);
    transition: transform 0.16s ease, margin-top 0.16s ease;
    flex-shrink: 0;
}

.iteq-select-shell.open .iteq-select-arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.iteq-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #cfdcff;
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(15, 38, 92, 0.16);
    padding: 6px;
    max-height: 270px;
    overflow-y: auto;
}

.iteq-select-option {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #22365f;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
}

.iteq-select-option:hover:not(:disabled) {
    background: #f0f6ff;
}

.iteq-select-option[aria-selected="true"] {
    background: #e8f1ff;
    color: #19408c;
}

.iteq-select-option:disabled {
    color: #8f9bb8;
    cursor: not-allowed;
}

.iteq-select-option.is-placeholder {
    font-weight: 500;
}

.brand-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(132deg, #4b97ff 0%, #2f70f2 55%, #1f53e7 100%);
    color: #f5f8ff;
    box-shadow: 0 16px 32px rgba(31, 83, 231, 0.3);
}

.company-card {
    background: linear-gradient(132deg, #4b97ff 0%, #2f70f2 55%, #1f53e7 100%);
    box-shadow: 0 16px 32px rgba(31, 83, 231, 0.3);
}

.employee-card {
    background: linear-gradient(132deg, #1f2f63 0%, #152957 45%, #0b1b40 100%);
    box-shadow: 0 16px 32px rgba(9, 24, 62, 0.4);
}

.employee-card::before {
    background: linear-gradient(145deg, rgba(102, 143, 255, 0.25), rgba(132, 167, 255, 0.08));
}

.employee-card::after {
    background: rgba(83, 120, 209, 0.26);
}

.brand-card::before,
.brand-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.brand-card::before {
    width: 220px;
    height: 220px;
    right: -110px;
    top: -120px;
    border-radius: 46% 54% 67% 33%;
    background: rgba(255, 255, 255, 0.12);
}

.brand-card::after {
    width: 280px;
    height: 180px;
    left: -150px;
    bottom: -110px;
    border-radius: 68% 32% 57% 43%;
    background: rgba(6, 20, 51, 0.25);
}

.flag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #f3f7ff;
    border: 1px solid #d7e3ff;
    color: #33456e;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
}

.iteq-flag-svg {
    margin-right: 0.26em;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(16, 43, 102, 0.08);
    vertical-align: -0.12em;
}

.iteq-select-option .iteq-flag-svg,
.iteq-select-value .iteq-flag-svg {
    margin-right: 0;
    flex-shrink: 0;
}

.iteq-flag-placeholder {
    width: 1.333em;
    height: 1em;
    display: inline-block;
    flex-shrink: 0;
}

.iteq-flag-fallback {
    width: 1.333em;
    height: 1em;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
    background: linear-gradient(145deg, #edf3ff 0%, #d6e3ff 100%);
    box-shadow: 0 0 0 1px rgba(16, 43, 102, 0.08);
}

@media (max-width: 1024px) {
    .iteq-sidebar {
        width: 210px;
    }
}

@media (max-width: 860px) {
    .iteq-shell {
        flex-direction: column;
        height: auto;
    }

    .iteq-sidebar {
        width: 100%;
        min-height: auto;
    }

    .iteq-main {
        overflow: visible;
    }
}
