/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */
:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --brand: #0e8fa0;
    --brand-dark: #164174;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Login screen                                                       */
/* ------------------------------------------------------------------ */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(160deg, #eef3f9 0%, var(--bg) 50%, #e8edf2 100%);
}

.login-card {
    background-color: var(--surface);
    width: 100%;
    max-width: 400px;
    padding: 40px 36px 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.login-brand {
    margin-bottom: 28px;
}

.login-logo {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.login-company {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.login-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

.login-footer {
    margin-top: 28px;
    font-size: 12px;
    color: #9ca3af;
}

.login-btn-loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background-color: #2f2f2f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #2f2f2f;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.login-btn:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.error-box {
    background-color: #fde7e9;
    color: #a4262c;
    border: 1px solid #f1b9bc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

/* ------------------------------------------------------------------ */
/* Dashboard layout                                                   */
/* ------------------------------------------------------------------ */
.app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
}

.sidebar-logo {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    object-fit: contain;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
}

.sidebar-greeting {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background-color: transparent;
    color: var(--text);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
    background-color: #eef3f9;
}

.nav-btn.active {
    background-color: var(--brand);
    color: #ffffff;
}

.signout-link {
    display: block;
    text-align: center;
    padding: 12px 16px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.signout-link:hover {
    background-color: #fde7e9;
    color: #a4262c;
}

/* ------------------------------------------------------------------ */
/* Main content / iframe                                              */
/* ------------------------------------------------------------------ */
.content {
    flex-grow: 1;
    padding: 20px;
    overflow: hidden;
}

#pbi-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    background-color: var(--surface);
}

.sidebar-home {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 6px;
}

.sidebar-home:hover .sidebar-title {
    color: var(--brand-dark);
}

/* ------------------------------------------------------------------ */
/* Welcome page                                                       */
/* ------------------------------------------------------------------ */
.welcome-body {
    background: linear-gradient(160deg, #eef3f9 0%, var(--bg) 45%, #e8edf2 100%);
    min-height: 100vh;
}

.welcome-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 20px 28px;
}

.welcome-page:not(.is-org-layout) {
    max-width: none;
}

.welcome-page.is-org-layout {
    max-width: 1200px;
    padding: 24px;
}

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.welcome-page.is-org-layout .welcome-header {
    margin-bottom: 40px;
}

.welcome-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-logo {
    object-fit: contain;
}

.welcome-company {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.welcome-signout {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.welcome-signout:hover {
    background-color: #fde7e9;
    color: #a4262c;
}

.welcome-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.welcome-main:not(.is-org-stage) {
    justify-content: center;
    align-items: center;
}

.welcome-main.is-org-stage {
    justify-content: center;
    align-items: center;
}

.welcome-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    width: 100%;
}

.welcome-main:not(.is-org-stage) .welcome-hero {
    display: flex;
    align-items: center;
    min-height: calc(100dvh - 108px);
    padding: clamp(36px, 5vw, 72px) clamp(32px, 4vw, 64px);
}

.welcome-main:not(.is-org-stage) .welcome-hero-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 56px;
}

.welcome-main:not(.is-org-stage) .welcome-hero-visual {
    width: min(400px, 38vw);
}

.welcome-main:not(.is-org-stage) .welcome-greeting {
    font-size: 24px;
    margin-bottom: 18px;
}

.welcome-main:not(.is-org-stage) .welcome-title {
    font-size: 48px;
    margin-bottom: 22px;
    line-height: 1.2;
}

.welcome-main:not(.is-org-stage) .welcome-description {
    font-size: 21px;
    line-height: 1.75;
    max-width: 820px;
}

.welcome-hero.is-dismissing {
    pointer-events: none;
    animation: welcome-hero-dismiss 0.55s ease forwards;
}

.welcome-hero.is-folded {
    display: none;
}

@keyframes welcome-hero-dismiss {
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-hero.is-dismissing {
        animation: welcome-hero-dismiss-reduced 0.2s ease forwards;
    }

    @keyframes welcome-hero-dismiss-reduced {
        to {
            opacity: 0;
        }
    }
}

.welcome-hero-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.welcome-hero-content {
    flex: 1;
    min-width: 0;
}

.welcome-hero-visual {
    flex-shrink: 0;
    width: min(280px, 34vw);
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px) scale(0.96);
    pointer-events: none;
}

.welcome-hero-visual.is-visible {
    visibility: visible;
    pointer-events: auto;
    animation: welcome-hero-visual-reveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.welcome-hero-lottie {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

@keyframes welcome-hero-visual-reveal {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-hero-visual.is-visible {
        animation: welcome-hero-visual-reveal-reduced 0.2s ease forwards;
    }

    @keyframes welcome-hero-visual-reveal-reduced {
        to {
            opacity: 1;
            transform: none;
        }
    }
}

.welcome-greeting {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 14px;
    min-height: 1.5em;
}

.welcome-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background-color: currentColor;
    animation: welcome-cursor-blink 0.95s step-end infinite;
}

.welcome-typing-cursor.is-finished {
    animation: welcome-cursor-fade 0.45s ease forwards;
}

@keyframes welcome-cursor-blink {
    50% {
        opacity: 0;
    }
}

@keyframes welcome-cursor-fade {
    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-typing-cursor {
        display: none;
    }
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.25;
    min-height: 1.3em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.97);
}

.welcome-title.is-visible {
    visibility: visible;
    animation: welcome-title-reveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes welcome-title-reveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-title.is-visible {
        animation: welcome-title-reveal-reduced 0.15s ease forwards;
    }

    @keyframes welcome-title-reveal-reduced {
        to {
            opacity: 1;
            transform: none;
        }
    }
}

.welcome-description {
    font-size: 18px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 760px;
    opacity: 0;
    visibility: hidden;
}

.welcome-description.is-visible {
    visibility: visible;
    animation: welcome-description-reveal 0.42s ease forwards;
}

@keyframes welcome-description-reveal {
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-description.is-visible {
        animation: welcome-description-reveal-reduced 0.15s ease forwards;
    }

    @keyframes welcome-description-reveal-reduced {
        to {
            opacity: 1;
        }
    }
}

.welcome-organizations {
    margin-bottom: 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(28px) scale(0.97);
    pointer-events: none;
    width: 100%;
}

.welcome-main.is-org-stage .welcome-organizations {
    margin-bottom: 0;
}

.welcome-organizations.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.welcome-organizations.is-visible.is-centered {
    animation: welcome-organizations-center 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.welcome-organizations.is-visible.is-instant {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes welcome-organizations-center {
    from {
        opacity: 0;
        transform: translateY(72px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-organizations.is-visible.is-centered {
        animation: welcome-organizations-center-reduced 0.2s ease forwards;
    }

    @keyframes welcome-organizations-center-reduced {
        to {
            opacity: 1;
            transform: none;
        }
    }
}

.welcome-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-section-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.org-card-form {
    margin: 0;
}

.org-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    width: 100%;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.org-card--animated {
    position: relative;
    overflow: hidden;
}

.org-card--animated .org-card-content {
    position: relative;
    z-index: 1;
    padding-right: 136px;
}

.org-card-content {
    flex: 1;
    min-width: 0;
}

.org-card-visual {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    pointer-events: none;
}

.org-card-lottie {
    display: block;
    width: 100%;
    height: 100%;
}

.org-card--bss .org-card-content,
.org-card--health .org-card-content,
.org-card--talent .org-card-content,
.org-card--innovations .org-card-content {
    padding-right: 108px;
}

.org-card--bss .org-card-visual,
.org-card--health .org-card-visual,
.org-card--talent .org-card-visual,
.org-card--innovations .org-card-visual {
    width: 156px;
    height: 156px;
    right: 8px;
}

.org-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(14, 143, 160, 0.12);
    transform: translateY(-2px);
}

.org-card-action {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
}

.org-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.org-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.org-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.org-label {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.org-departments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.department-card-form {
    margin: 0;
}

.department-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.department-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(14, 143, 160, 0.12);
    transform: translateY(-2px);
}

.department-card-compact {
    padding: 16px 14px;
    min-height: 120px;
}

.department-card-compact .department-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.department-card-compact .department-label {
    font-size: 15px;
    margin-bottom: 10px;
}

.department-card-compact .department-action {
    font-size: 13px;
}

.department-icon {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1;
}

.department-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.department-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 16px;
    flex: 1;
}

.department-action {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
}

.welcome-footer {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding-top: 16px;
    flex-shrink: 0;
}

.welcome-page:not(.is-org-layout) .welcome-footer {
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar-org {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-bottom: 20px;
    background: #f8fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.sidebar-org-icon {
    font-size: 22px;
    line-height: 1;
}

.sidebar-org-logo {
    width: 48px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-org-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.sidebar-org-change {
    font-size: 12px;
    color: var(--brand);
    text-decoration: none;
}

.sidebar-org-change:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .org-grid {
        grid-template-columns: 1fr;
    }

    .org-departments {
        grid-template-columns: 1fr;
    }

    .welcome-hero-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .welcome-hero-visual {
        width: min(240px, 100%);
        align-self: center;
        transform: translateY(12px) scale(0.96);
    }

    .org-card-visual {
        width: 180px;
        height: 180px;
        right: -16px;
    }

    .org-card--bss .org-card-visual,
    .org-card--health .org-card-visual,
    .org-card--talent .org-card-visual,
    .org-card--innovations .org-card-visual {
        width: 132px;
        height: 132px;
        right: 4px;
    }

    .org-card--bss .org-card-content,
    .org-card--health .org-card-content,
    .org-card--talent .org-card-content,
    .org-card--innovations .org-card-content {
        padding-right: 96px;
    }

    .org-card--animated .org-card-content {
        padding-right: 112px;
    }

    .welcome-hero-visual.is-visible {
        animation-name: welcome-hero-visual-reveal-mobile;
    }

    @keyframes welcome-hero-visual-reveal-mobile {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 640px) {
    .welcome-main:not(.is-org-stage) .welcome-hero {
        min-height: calc(100dvh - 96px);
        padding: 28px 24px;
    }

    .welcome-main:not(.is-org-stage) .welcome-hero-visual {
        width: min(280px, 100%);
    }

    .welcome-main:not(.is-org-stage) .welcome-greeting {
        font-size: 20px;
    }

    .welcome-main:not(.is-org-stage) .welcome-title {
        font-size: 34px;
    }

    .welcome-main:not(.is-org-stage) .welcome-description {
        font-size: 18px;
    }

    .welcome-hero {
        padding: 28px 24px;
    }

    .welcome-title {
        font-size: 30px;
    }

    .department-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ */
/* Admin dashboard                                                    */
/* ------------------------------------------------------------------ */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-back {
    color: var(--brand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.admin-back:hover {
    text-decoration: underline;
}

.admin-title {
    font-size: 24px;
    font-weight: 600;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.admin-user {
    color: var(--muted);
}

.admin-signout {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 500;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.admin-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.admin-tab:hover {
    color: var(--text);
}

.admin-tab.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-panel-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.admin-btn:hover {
    background: #f9fafb;
}

.admin-btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.admin-btn--primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.admin-btn--danger {
    color: #dc2626;
    border-color: #fecaca;
}

.admin-btn--danger:hover {
    background: #fef2f2;
}

.admin-btn--sm {
    padding: 4px 10px;
    font-size: 13px;
}

.admin-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f9fafb;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-logo-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.admin-icon-thumb {
    font-size: 24px;
    display: inline-block;
    width: 40px;
    text-align: center;
}

.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
}

.admin-badge--inactive {
    background: #f3f4f6;
    color: var(--muted);
}

.admin-url-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
}

.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-toast--success {
    background: #065f46;
    color: #fff;
}

.admin-toast--error {
    background: #dc2626;
    color: #fff;
}

.admin-modal {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: calc(100% - 32px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.admin-modal::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.admin-modal-form {
    display: flex;
    flex-direction: column;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.admin-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.admin-modal-close {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}

.admin-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.admin-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.admin-field input[type="text"],
.admin-field input[type="file"],
.admin-field textarea,
.admin-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.admin-field textarea {
    resize: vertical;
}

.admin-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.admin-logo-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.admin-logo-preview img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.welcome-admin-link {
    font-size: 13px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.welcome-admin-link:hover {
    text-decoration: underline;
}

.welcome-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
