:root {
    --voca-blue: #0f5da8;
    --voca-blue-dark: #083967;
    --voca-blue-soft: #e8f2ff;
    --voca-yellow: #f4bd21;
    --voca-yellow-soft: #fff5cf;
    --voca-green-soft: #e7f7ed;
    --voca-text: #172033;
    --voca-muted: #6b7688;
    --voca-border: #d9e3ef;
    --voca-bg: #f6f9fd;
    --voca-panel: #ffffff;
    --voca-shadow: 0 18px 45px rgba(15, 93, 168, 0.12);
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background: var(--voca-bg);
    color: var(--voca-text);
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    letter-spacing: 0;
}

.app-shell {
    min-height: 100vh;
}

.login-screen {
    background: var(--voca-bg);
}

.login-brand {
    position: relative;
    overflow: hidden;
    background: var(--voca-blue);
    color: #fff;
}

.login-brand::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 44px 44px;
}

.brand-panel {
    position: relative;
    z-index: 1;
    max-width: 460px;
    padding: 48px;
}

.brand-mark-lg {
    width: 96px;
    height: 96px;
    margin-bottom: 36px;
}

.brand-mark-sm,
.navbar-mark {
    width: 42px;
    height: 42px;
}

.brand-title {
    max-width: 390px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    font-weight: 700;
}

.brand-strip {
    width: min(320px, 80%);
    height: 8px;
    margin: 32px 0;
    border-radius: 8px;
    background: var(--voca-yellow);
}

.brand-kpis {
    display: flex;
    gap: 12px;
}

.brand-kpis > div {
    min-width: 132px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.brand-kpi-value,
.brand-kpi-label {
    display: block;
}

.brand-kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-kpi-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

.auth-panel {
    max-width: 460px;
    padding: 32px;
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: var(--voca-panel);
    box-shadow: var(--voca-shadow);
}

.auth-title,
.page-heading h2,
.panel h3 {
    font-weight: 700;
}

.auth-title {
    font-size: 2rem;
}

.eyebrow {
    color: var(--voca-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.form-label {
    color: #354052;
    font-weight: 700;
}

.form-control,
.input-group-text,
.btn {
    border-radius: 8px;
}

.input-group .form-control,
.input-group .input-group-text,
.input-group .btn {
    border-radius: 0;
}

.input-group > :first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-group > :last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.input-group-text {
    background: #f4f8fc;
    color: var(--voca-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    font-weight: 700;
}

.btn-voca-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--voca-blue);
    --bs-btn-border-color: var(--voca-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0c4e8f;
    --bs-btn-hover-border-color: #0c4e8f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--voca-blue-dark);
    --bs-btn-active-border-color: var(--voca-blue-dark);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--voca-border);
    background: #fff;
    color: var(--voca-blue);
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--voca-border);
    color: var(--voca-muted);
    font-size: 0.875rem;
}

.auth-meta strong {
    max-width: 260px;
    overflow: hidden;
    color: var(--voca-blue-dark);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 68px;
    border-bottom: 1px solid var(--voca-border);
    background: rgba(255, 255, 255, 0.96);
}

.navbar-brand span {
    color: var(--voca-blue-dark);
    font-weight: 800;
}

.status-pill,
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: #fff;
    color: var(--voca-blue-dark);
    font-weight: 700;
}

.status-pill.is-on {
    border-color: #b8dfc5;
    background: #ecfbf1;
    color: #1e6b3a;
}

.status-pill.is-off {
    border-color: #ffe1a6;
    background: #fff7df;
    color: #8a5b00;
}

.notification-count-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: var(--voca-yellow);
    color: var(--voca-blue-dark);
    font-size: 0.75rem;
    line-height: 1;
}

.avatar-xs,
.avatar-md,
.avatar-xl {
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--voca-yellow);
    color: var(--voca-blue-dark);
    font-weight: 800;
}

.avatar-xs {
    width: 28px;
    height: 28px;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.avatar-xl {
    width: 92px;
    height: 92px;
    font-size: 2.2rem;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 68px);
}

.sidebar {
    position: sticky;
    top: 68px;
    width: 264px;
    height: calc(100vh - 68px);
    flex: 0 0 264px;
    background: var(--voca-blue-dark);
    color: #fff;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 18px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
}

.sidebar-user span:last-child {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
}

.nav-menu {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-weight: 700;
    text-align: left;
}

.sidebar .menu-link {
    color: rgba(255, 255, 255, 0.76);
}

.menu-link:hover,
.menu-link.active {
    background: var(--voca-yellow);
    color: var(--voca-blue-dark);
}

.dropdown-item.menu-link {
    border-radius: 0;
}

.btn-sidebar-logout {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-sidebar-logout:hover {
    background: #fff;
    color: var(--voca-blue-dark);
}

.content {
    min-width: 0;
    flex: 1;
    padding: 28px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.panel,
.metric-card {
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: var(--voca-panel);
    box-shadow: 0 8px 24px rgba(15, 93, 168, 0.07);
}

.panel {
    padding: 20px;
}

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

.panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.metric-card {
    display: grid;
    min-height: 144px;
    gap: 8px;
    padding: 18px;
}

.metric-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: var(--voca-blue-dark);
}

.metric-label {
    color: var(--voca-muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.metric-card strong {
    overflow-wrap: anywhere;
    font-size: 1.25rem;
}

.bg-blue-soft {
    background: var(--voca-blue-soft);
}

.bg-yellow-soft {
    background: var(--voca-yellow-soft);
}

.bg-green-soft {
    background: var(--voca-green-soft);
}

.push-status {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: #f8fbff;
}

.push-status-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--voca-yellow);
    color: var(--voca-blue-dark);
}

.push-status p {
    color: var(--voca-muted);
}

.notification-message-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--voca-blue);
    border-radius: 8px;
    background: #eff6ff;
}

.notification-message-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notification-message-card p {
    color: var(--voca-muted);
}

.notification-message-card small {
    color: var(--voca-blue-dark);
    font-weight: 700;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--voca-border);
}

.info-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-list span {
    color: var(--voca-muted);
    font-weight: 700;
}

.info-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.info-list-lg > div {
    grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
}

.table thead th {
    color: var(--voca-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.table tbody td {
    vertical-align: middle;
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 42px 16px 28px;
    color: var(--voca-muted);
    text-align: center;
}

.empty-state i {
    color: var(--voca-blue);
    font-size: 2rem;
}

.empty-state strong {
    color: var(--voca-text);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
}

.profile-panel {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 320px;
    gap: 12px;
    text-align: center;
}

.profile-panel h3 {
    margin: 0;
}

.toast {
    border-radius: 8px;
}

.alert {
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .content {
        padding: 18px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .profile-panel {
        min-height: 240px;
    }
}

@media (max-width: 575.98px) {
    .auth-panel {
        padding: 24px 18px;
    }

    .content {
        padding: 14px;
    }

    .panel {
        padding: 16px;
    }

    .info-list > div,
    .info-list-lg > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .auth-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-meta strong {
        max-width: 100%;
    }
}
