/* Consolidated styles used by React-in-template screens */
/* ========================================
   CONSOLIDATED TEMPLATE STYLES
======================================== */
:root {
    --surface-1: rgba(15, 23, 42, 0.72);
    --surface-2: rgba(255, 255, 255, 0.08);
    --surface-3: rgba(255, 255, 255, 0.05);
    --stroke: rgba(255, 255, 255, 0.12);
    --stroke-soft: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.2);
    --shadow-lift: 0 22px 44px rgba(0, 0, 0, 0.24);
    --app-radius: 16px;
    --app-radius-lg: 20px;
}

body {
    color: #f8fafc;

}

.page-wrap,
.dashboard-wrap,
.settings-wrap,
.issues-wrap,
.dash-wrap,
.sub-page,
.license-page,
.users-page,
.profile-wrap {
    width: min(100%, 1400px);
    margin-inline: auto;
    padding: 24px;
}

.sub-page {
    max-width: 1300px;
}

.license-page {
    max-width: 1200px;
}

.profile-wrap {
    max-width: 1100px;
}

.glass,
.glass-card,
.glass-box,
.table-box,
.table-card,
.table-wrap {
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    border-radius: var(--app-radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.table-wrap,
.glass-box {
    padding: 18px;
}

.hero,
.hero-card,
.page-head,
.header-box {
    padding: 24px;
}

.hero-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(20, 184, 166, 0.14));
}

.hero-title,
.feature-title,
.section-title,
.role-name,
.page-title {
    color: #fff;
    font-weight: 800;
}

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

.hero h2 {
    margin: 0;
}

.hero p,
.hero-sub,
.page-sub,
.small-muted,
.stat-label,
.feature-text {
    color: rgba(248, 250, 252, 0.72);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.license-page .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.stat,
.stat-card,
.stat-tile,
.stat-box,
.mini-stat {
    color: #fff;
    border-radius: var(--app-radius-lg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.stat,
.stat-card {
    padding: 20px;
}

.stat-card,
.stat-tile,
.stat-box,
.feature-card,
.role-card,
.template-card,
.user-card,
.issue-card,
.mobile-card,
.item-row {
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card,
.stat-tile,
.stat-box,
.feature-card,
.row-click,
.table tbody tr {
    cursor: pointer;
}

.stat-card:hover,
.stat-tile:hover,
.stat-box:hover,
.feature-card:hover,
.role-card:hover,
.template-card:hover,
.user-card:hover,
.issue-card:hover,
.mobile-card:hover,
.item-row:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-lift);
}

.stat-icon,
.feature-icon,
.tile-icon {
    font-size: 1.5rem;
}

.tile-value {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.tile-label {
    opacity: 0.95;
}

.stat-value,
.mini-num,
.num {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.license-page .stat h2 {
    font-size: 2.6rem;
    font-weight: 800;
}

.label,
.mini-label {
    font-weight: 600;
}

.blue,
.bg3,
.color-blue {
    background: linear-gradient(135deg, #0b7f82, #60d0c0);
}

.green,
.bg2,
.color-green {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.red,
.bg4,
.color-red {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.gold,
.bg1,
.color-gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111827;
}

.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.section,
.info-box,
.user-card,
.issue-card,
.mobile-card,
.timeline-box,
.progress-box,
.quick-pill,
.template-card,
.item-row {
    background: var(--surface-3);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--app-radius);
}

.section {
    margin-top: 20px;
    padding: 22px;
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.info-box,
.user-card,
.issue-card,
.mobile-card,
.timeline-box {
    padding: 16px;
}

.info-title {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.info-value {
    margin-top: 6px;
    color: #fff;
    font-weight: 700;
    word-break: break-word;
}

.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.empty,
.empty-box,
.loader-box {
    color: #cbd5e1;
    text-align: center;
}

.empty,
.empty-box {
    padding: 36px;
}

.loader-box {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box,
.search-input,
.form-control,
.form-select {
    min-height: 46px;
    border-radius: 12px;
}

.search-box,
.search-input {
    border: 0;
    background: rgba(255, 255, 255, 0.96);
}

.dropzone {
    cursor: pointer;
    border-style: dashed !important;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dropzone:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.sub-page .form-control,
.sub-page .form-select {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sub-page .form-select option {
    color: #111827;
}

.custom-table,
.table {
    color: #fff;
}

.custom-table thead th,
.table thead th,
.shift-table thead th {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.custom-table td,
.custom-table th,
.table tbody td,
.shift-table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table tbody tr:hover,
.row-click:hover {
    background: rgba(255, 255, 255, 0.04);
}

.table-responsive {
    border-radius: var(--app-radius);
}

.plan-card {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--stroke);
    border-radius: var(--app-radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.plan-feature {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card,
.role-card,
.priority-card {
    height: 100%;
    padding: 20px;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quick-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
}

.quick-btn {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
}

.avatar,
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.avatar {
    width: 90px;
    height: 90px;
    margin: auto;
    color: #111827;
    font-size: 38px;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 32px;
    background: #0b7f82;
}

.info-line {
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-line a {
    color: #facc15;
}

.modal-backdrop-custom,
.drawer-backdrop,
.modal-scrim {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.modal-box,
.drawer-box {
    width: 100%;
    padding: 24px;
}

.modal-box {
    max-width: 480px;
}

.drawer-box {
    max-width: 520px;
}

.modal-content,
.card {
    border-radius: var(--app-radius);
}

.timeline {
    position: relative;
    margin-left: 8px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.timeline-item {
    position: relative;
    padding-left: 38px;
    margin-bottom: 22px;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.template-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.92));
}

.template-card:hover {
    border-color: #0dcaf0;
}

.code-box {
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #0b1220;
}

.preview-box {
    min-height: 220px;
}

.pagination-wrap {
    font-size: 0.72rem;
}

.notif-menu {
    width: min(390px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.notif-menu-wide {
    width: min(390px, calc(100vw - 24px));
}

.notif-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.notif-panel-header strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.notif-panel-header small {
    display: block;
    color: #64748b;
    font-size: .72rem;
}

.notif-panel-actions {
    display: flex;
    gap: .6rem;
}

.notif-action {
    padding: 0;
    border: 0;
    color: #0b7f82;
    background: transparent;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.notif-action:hover {
    color: #075f64;
    text-decoration: underline;
}

.notif-permission-row {
    padding: .65rem 1rem;
    border-bottom: 1px solid #dbeafe;
    background: #eff6ff;
}

.notif-permission-action {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--primary, #0b7f82);
    border-radius: .7rem;
    color: var(--primary, #0b7f82);
    background: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.notif-permission-action:hover,
.notif-permission-action:focus-visible {
    color: #fff;
    background: var(--primary, #0b7f82);
}

.notif-list {
    max-height: min(430px, 65vh);
    overflow-y: auto;
    background: #fff;
}

.notif-item {
    position: relative;
    display: grid;
    grid-template-columns: 9px 1fr;
    gap: .65rem;
    padding: .85rem 1rem;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background .18s ease;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.is-unread {
    background: #eff6ff;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    margin-top: .38rem;
    border-radius: 50%;
    background: transparent;
}

.notif-item.is-unread .notif-unread-dot {
    background: #0b7f82;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.notif-item-copy {
    min-width: 0;
}

.notif-item-copy strong,
.notif-item-copy span,
.notif-item-copy time {
    display: block;
}

.notif-item-copy strong {
    color: #0f172a;
    font-size: .88rem;
}

.notif-item-copy span {
    margin-top: .15rem;
    color: #475569;
    font-size: .8rem;
    line-height: 1.35;
    white-space: normal;
}

.notif-item-copy time {
    margin-top: .35rem;
    color: #94a3b8;
    font-size: .7rem;
}

.notif-item.is-read {
    opacity: .72;
}

.notif-empty {
    display: grid;
    justify-items: center;
    gap: .25rem;
    padding: 2.2rem 1rem;
    color: #64748b;
    text-align: center;
}

.notif-empty>span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: .25rem;
    place-items: center;
    color: #047857;
    border-radius: 50%;
    background: #d1fae5;
    font-weight: 800;
}

.notif-empty strong {
    color: #334155;
}

.notif-empty small {
    font-size: .78rem;
}

.is-hidden {
    display: none;
}

.install-btn {
    display: none;
}

.w-350 {
    width: 350px;
}

.mw-320 {
    max-width: 320px;
}

.mw-980 {
    max-width: 980px;
}

.logo-preview-sm {
    max-height: 80px;
}

.progress-thin {
    height: 8px;
}

.progress-slim {
    height: 10px;
}

.progress-medium {
    height: 12px;
}

.detail-modal-backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.chat-message-width {
    max-width: 78%;
}

.chat-message-narrow {
    max-width: 75%;
}

.chat-scroll-panel {
    max-height: 65vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #07122c, #0b1735);
}

.chat-bubble {
    word-break: break-word;
}

.chat-attachment {
    max-height: 260px;
    object-fit: cover;
    cursor: pointer;
}

.log-console {
    min-height: 420px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}

.cursor-pointer {
    cursor: pointer;
}

.dashboard-redirect-body {
    color: #fff;
    text-align: center;
    padding-top: 100px;
    font-family: Arial, sans-serif;
    background: #0f172a;
}

.animate-badge {
    animation: pulseBadge 0.6s ease;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.ims-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 280px;
    max-width: 340px;
    padding: 14px 16px;
    color: #fff;
    cursor: pointer;
    background: #0b7f82;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-15px);
    transition: 0.4s;
}

.ims-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .ims-toast {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 768px) {

    .page-wrap,
    .dashboard-wrap,
    .settings-wrap,
    .issues-wrap,
    .dash-wrap,
    .sub-page,
    .license-page,
    .users-page,
    .profile-wrap {
        padding: 14px;
    }

    .hero,
    .hero-card,
    .page-head,
    .header-box {
        padding: 18px;
    }

    .hero-title,
    .page-title {
        font-size: 1.45rem;
    }

    .stat-value,
    .stat-number {
        font-size: 1.45rem;
    }

    .license-page .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .pagination-wrap button {
        width: 100px;
    }
}
