:root {

    --primary-color: #d4a017;
    --primary-dark: #b88a0f;
    --primary-light: #f5d76e;

    --bg-dark: #1a1207;
    --bg-section: #f8f6f2;
    --bg-card: #ffffff;

    --sidebar-bg: #1a1207;
    --header-bg: #ffffff;
    --body-bg: #f8f6f2;

    --text-dark: #222222;
    --text-light: #666666;
    --text-white: #ffffff;

    --border-color: #e5e5e5;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);

}

/* Layout */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--body-bg);
}

/* Sidebar CSS */

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    /* #1a1207 */
    color: var(--text-white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 100;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.logo-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(1.2);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    flex: 1;
}

.sidebar-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    padding: 10px 20px 4px;
    margin-top: 4px;
}

.sidebar-menu {
    list-style: none;
    padding: 0 10px;
    margin: 0 0 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    font-size: 13px;
    transition: background 0.2s;
}

.menu-label {
    flex: 1;
}

.sidebar-menu li a:hover {
    background: rgba(212, 160, 23, 0.10);
    color: var(--primary-color);
    padding-left: 16px;
}

.sidebar-menu li a:hover .menu-icon {
    background: rgba(212, 160, 23, 0.18);
    color: var(--primary-color);
}

.sidebar-menu li a.active {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.22), rgba(212, 160, 23, 0.10));
    color: var(--primary-color);
    border: 1px solid rgba(212, 160, 23, 0.25);
}

.sidebar-menu li a.active .menu-icon {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.sidebar-menu li a.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sf-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.sf-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sf-logout {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(234, 67, 53, 0.15);
    color: #ea4335;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.sf-logout:hover {
    background: rgba(234, 67, 53, 0.3);
    color: #ea4335;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.sidebar-backdrop.show {
    display: block;
}

@media (min-width: 992px) {
    .sidebar.active {
        width: 68px;
    }

    .sidebar.active .logo-text,
    .sidebar.active .menu-label,
    .sidebar.active .nav-group-label,
    .sidebar.active .sf-info,
    .sidebar.active .sf-logout {
        display: none;
    }

    .sidebar.active .sidebar-logo {
        justify-content: center;
        padding: 22px 10px 18px;
    }

    .sidebar.active .logo-icon-wrap {
        margin: 0 auto;
    }

    .sidebar.active .sidebar-menu {
        padding: 0 6px;
    }

    .sidebar.active .sidebar-menu li a {
        justify-content: center;
        padding: 8px;
        gap: 0;
    }

    .sidebar.active .sidebar-menu li a::before {
        display: none;
    }

    .sidebar.active .menu-icon {
        width: 36px;
        height: 36px;
    }

    .sidebar.active .sidebar-footer {
        justify-content: center;
        padding: 12px 8px;
    }

    .sidebar.active .sf-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 260px !important;
        z-index: 999;
        transform: translateX(-100%);
        min-height: 100%;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: flex;
    }

    .sidebar-menu li a.active::before {
        left: -10px;
    }
}

/* Main Section */
.main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: 73px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.menu-toggle {
    font-size: 22px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.admin-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.admin-btn.show {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.admin-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-btn-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    line-height: 1;
}

.admin-btn-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.admin-btn-role {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-chevron {
    font-size: 10px;
    color: var(--text-light);
    transition: transform .25s;
    margin-left: 2px;
}

.admin-btn.show .admin-chevron {
    transform: rotate(180deg);
}

.admin-menu {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 6px;
    min-width: 220px;
    margin-top: 8px !important;
    background: var(--bg-card);
}

.admin-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 12px;
    pointer-events: none;
}

.amh-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.amh-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.amh-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amh-email {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.admin-menu .dropdown-item:hover {
    background: var(--bg-section);
    color: var(--primary-color);
}

.di-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

.admin-menu .dropdown-item:hover .di-icon {
    background: rgba(212, 160, 23, 0.15);
    color: var(--primary-color);
}

.logout-btn {
    color: #e74c3c !important;
}

.logout-btn:hover {
    background: #fdecea !important;
    color: #e74c3c !important;
}

.di-icon-red {
    color: #e74c3c;
    background: #fdecea;
}

.logout-btn:hover .di-icon-red {
    background: #fbd5d2;
}

.admin-menu .dropdown-divider {
    border-color: var(--border-color);
    margin: 4px 0;
}

@media (max-width: 576px) {
    .admin-btn-info {
        display: none;
    }

    .admin-chevron {
        display: none;
    }

    .admin-btn {
        padding: 5px;
        border-radius: 50%;
    }

    .admin-menu {
        min-width: 200px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Content */
.content-wrapper {
    flex: 1;
    padding: 25px;
    background: var(--body-bg);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--body-bg);
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-left {
    width: 50%;
    flex-shrink: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.08);
    top: -80px;
    right: -80px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.06);
    bottom: 60px;
    left: -60px;
}

.ll-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ll-symbol {
    font-size: 64px;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.ll-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.ll-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 32px;
}

.ll-dots {
    display: flex;
    gap: 8px;
}

.ll-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.4;
}

.ll-dots span:first-child {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

.ll-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: .05em;
    position: relative;
    z-index: 1;
}

.login-right {
    width: 50%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--body-bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.login-mobile-brand img {
    width: 36px;
}

.login-mobile-brand span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.lc-header {
    margin-bottom: 28px;
}

.lc-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.lc-sub {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.lf-group {
    margin-bottom: 20px;
}

.lf-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 7px;
}

.lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lf-icon {
    position: absolute;
    left: 13px;
    font-size: 13px;
    color: var(--text-light);
    pointer-events: none;
    z-index: 1;
}

.lf-input {
    width: 100%;
    padding: 11px 42px;
    font-size: 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.lf-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.lf-input-error {
    border-color: #e74c3c !important;
}

.lf-input::placeholder {
    color: #bbb;
}

.lf-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    line-height: 1;
    transition: color .2s;
}

.lf-eye:hover {
    color: var(--primary-color);
}

.lf-forgot {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.lf-forgot:hover {
    text-decoration: underline;
}

.lf-remember {
    margin-bottom: 24px;
}

.lf-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.lf-check-row input[type=checkbox] {
    display: none;
}

.lf-checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: border-color .2s, background .2s;
}

.lf-check-row input:checked+.lf-checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.lf-check-row input:checked+.lf-checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.lf-check-label {
    font-size: 13px;
    color: var(--text-light);
}

.login-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, transform .15s;
    letter-spacing: .02em;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 32px 20px;
        background: var(--body-bg);
    }

    .login-mobile-brand {
        display: flex;
    }

    .lc-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 24px 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-card {
        max-width: 100%;
    }

    .lf-input {
        font-size: 16px;
    }

}

/* Toast CSS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 340px;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 14px 18px;
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    pointer-events: all;
    animation: toastSlideIn 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    position: relative;
    overflow: hidden;
}

.toast-item.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

.toast-item.success::before {
    background: #1cc88a;
}

.toast-item.error::before {
    background: #e74c3c;
}

.toast-item.warning::before {
    background: var(--primary-color);
}

.toast-item.info::before {
    background: #36b9cc;
}

.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-item.success .toast-icon {
    background: rgba(28, 200, 138, 0.12);
    color: #1cc88a;
}

.toast-item.error .toast-icon {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.toast-item.warning .toast-icon {
    background: rgba(212, 160, 23, 0.12);
    color: var(--primary-color);
}

.toast-item.info .toast-icon {
    background: rgba(54, 185, 204, 0.12);
    color: #36b9cc;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.toast-item.success .toast-title {
    color: #1cc88a;
}

.toast-item.error .toast-title {
    color: #e74c3c;
}

.toast-item.warning .toast-title {
    color: var(--primary-color);
}

.toast-item.info .toast-title {
    color: #36b9cc;
}

.toast-message {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.5;
    word-break: break-word;
}

.toast-close {
    background: var(--bg-section);
    border: none;
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    margin-top: 2px;
}

.toast-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 14px 14px;
    animation: toastProgress 4s linear forwards;
    opacity: 0.5;
}

.toast-item.success .toast-progress {
    background: #1cc88a;
}

.toast-item.error .toast-progress {
    background: #e74c3c;
}

.toast-item.warning .toast-progress {
    background: var(--primary-color);
}

.toast-item.info .toast-progress {
    background: #36b9cc;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 120px;
        margin-bottom: 0;
    }

    to {
        opacity: 0;
        transform: translateX(80px);
        max-height: 0;
        padding: 0;
        margin-bottom: -10px;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .toast-item {
        border-radius: 12px;
    }
}

/* Dashboard Page CSS */
.dashboard-container {
    padding: 4px 0;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.dc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.dc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dc-blue {
    background: rgba(78, 115, 223, 0.12);
    color: #4e73df;
}

.dc-green {
    background: rgba(28, 200, 138, 0.12);
    color: #1cc88a;
}

.dc-gold {
    background: rgba(212, 160, 23, 0.12);
    color: var(--primary-color);
}

.dc-teal {
    background: rgba(54, 185, 204, 0.12);
    color: #36b9cc;
}

.dc-trend {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.trend-up {
    background: rgba(28, 200, 138, 0.12);
    color: #1cc88a;
}

.trend-down {
    background: rgba(231, 74, 59, 0.12);
    color: #e74c3c;
}

.dc-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.dc-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 14px;
}

.dc-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.dc-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .6s ease;
}

.dc-blue-bar {
    background: #4e73df;
}

.dc-green-bar {
    background: #1cc88a;
}

.dc-gold-bar {
    background: var(--primary-color);
}

.dc-teal-bar {
    background: #36b9cc;
}

.dashboard-chart {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    height: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.chart-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 3px;
}

.chart-sub {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
}

.chart-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(212, 160, 23, 0.12);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 160, 23, 0.25);
}

.chart-legend {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 14px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

@media (max-width: 576px) {
    .dashboard-card {
        padding: 16px;
    }

    .dc-value {
        font-size: 22px;
    }

    .dc-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .dashboard-chart {
        padding: 16px;
    }

    .chart-title {
        font-size: 14px;
    }
}

/* Profile Page CSS */
.page-header {
    border-left: 4px solid var(--primary-color);
    padding-left: 14px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin: 4px 0 0;
}

.profile-avatar-card {
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 35px 25px;
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
}

.avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.3);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: 2px solid #fff;
}

.avatar-edit-btn:hover {
    background: var(--primary-dark);
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.profile-role {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
}

.profile-meta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-section);
    padding: 9px 14px;
    border-radius: 8px;
}

.meta-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.profile-form-card {
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 25px;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-light);
}

.form-card-header i {
    width: 34px;
    height: 34px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.profile-input {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-section);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
    background: #fff;
    outline: none;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .profile-input {
    padding-right: 42px;
    width: 100%;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-save {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-save:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-save:active {
    transform: translateY(0);
}

.btn-save-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-save-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 767.98px) {

    .profile-avatar-card {
        padding: 25px 20px;
    }

    .profile-form-card {
        padding: 20px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .btn-save {
        width: 100%;
        text-align: center;
    }
}

/* Setting Page CSS */
.settings-card {
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 25px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-light);
}

.settings-card-header i {
    width: 34px;
    height: 34px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.settings-input {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-section);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
    background: #fff;
    outline: none;
}

textarea.settings-input {
    resize: vertical;
    min-height: 90px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 13px;
    top: 13px;
    color: var(--primary-color);
    font-size: 14px;
    z-index: 1;
}

.input-icon-wrap textarea~i,
.input-icon-wrap i+textarea {
    top: 13px;
}

.settings-input.has-icon {
    padding-left: 38px;
}

.upload-box {
    text-align: center;
}

.upload-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.upload-preview-wrap {
    width: 130px;
    height: 80px;
    margin: 0 auto 14px;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    overflow: hidden;
}

.upload-preview-wrap.upload-preview-sm {
    width: 70px;
    height: 70px;
    border-radius: 8px;
}

.upload-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.upload-btn:hover {
    background: var(--primary-dark);
}

.upload-hint {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
}

.social-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-field:last-child {
    margin-bottom: 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.twitter {
    background: #000000;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.linkedin {
    background: #0a66c2;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-field .settings-input {
    flex: 1;
}

.settings-save-bar {
    display: flex;
    justify-content: flex-end;
}

.btn-save-settings {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save-settings:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-save-settings:active {
    transform: translateY(0);
}

@media (max-width: 767.98px) {

    .settings-card {
        padding: 18px;
    }

    .settings-save-bar {
        justify-content: stretch;
    }

    .btn-save-settings {
        width: 100%;
        justify-content: center;
    }
}

/* Vastu Grid Page CSS */
.vastu-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: var(--body-bg);
}

.vastu-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.vastu-toolbar .btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-dark);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}

.vastu-toolbar .btn-tool:hover {
    background: var(--bg-section);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vastu-toolbar .btn-tool.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.vastu-toolbar .btn-tool.btn-green {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.vastu-toolbar .btn-tool.btn-orange {
    background: var(--primary-dark);
    color: var(--text-white);
    border-color: var(--primary-dark);
}

.vastu-toolbar .btn-tool.btn-red-outline {
    color: #ea4335;
    border-color: #ea4335;
    background: transparent;
}

.vastu-toolbar .btn-tool.btn-red-outline:hover {
    background: #fce8e6;
}

.vastu-toolbar .btn-tool.btn-png {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.vastu-toolbar .btn-tool.btn-pdf {
    background: var(--primary-dark);
    color: var(--text-white);
    border-color: var(--primary-dark);
}

.vastu-toolbar .separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 2px;
}

.vastu-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.vastu-canvas-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--bg-section);
    min-height: 300px;
}

.vastu-canvas-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#imgCanvas {
    z-index: 1;
}

#drawCanvas {
    z-index: 2;
    cursor: crosshair;
}

.page-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.drop-hint {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
    pointer-events: none;
    z-index: 0;
    padding: 20px;
    text-align: center;
}

.drop-hint i {
    font-size: 40px;
    color: var(--primary-light);
}

.drop-hint p {
    font-size: 14px;
    color: var(--text-light);
}

.vastu-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, width .3s ease;
    margin-top: 10px;
}

.sidebar-toggle-btn {
    display: none;
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
}

.sb-section {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

.sb-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.area-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    accent-color: var(--primary-color);
}

.area-check-row input[type=checkbox] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.rot-value-badge {
    background: var(--primary-light);
    color: var(--bg-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: auto;
}

.rot-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.rot-slider-row input[type=range] {
    flex: 1;
    accent-color: var(--primary-color);
}

.rot-input-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.rot-input-row input[type=number] {
    flex: 1;
    padding: 5px 7px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-section);
    color: var(--text-dark);
}

.rot-input-row input[type=number]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rot-input-row .btn-reset {
    padding: 5px 10px;
    font-size: 11px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-dark);
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.rot-input-row .btn-reset:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--bg-dark);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-dark);
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border-color);
    border-radius: 11px;
    cursor: pointer;
    transition: background .2s;
}

.toggle-track::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: var(--bg-card);
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.toggle-switch input:checked+.toggle-track {
    background: var(--primary-color);
}

.toggle-switch input:checked+.toggle-track::before {
    transform: translateX(18px);
}

.analysis-hint {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    padding: 16px 0;
}

@media (max-width: 1024px) {
    .vastu-sidebar {
        width: 200px;
    }

    .vastu-toolbar .btn-tool {
        padding: 5px 8px;
        font-size: 11px;
    }

    .vastu-toolbar .separator {
        display: none;
    }
}

@media (max-width: 768px) {

    .vastu-wrapper {
        height: calc(100vh - 56px);
    }

    .vastu-toolbar {
        padding: 6px 10px;
        gap: 5px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .vastu-toolbar::-webkit-scrollbar {
        display: none;
    }

    .vastu-toolbar .btn-tool {
        padding: 5px 8px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .vastu-toolbar .btn-tool span {
        display: none;
    }

    .vastu-toolbar .btn-tool i {
        font-size: 14px;
    }

    .vastu-toolbar .separator {
        display: none;
    }

    .vastu-body {
        flex-direction: column;
        overflow: auto;
    }

    .vastu-canvas-wrap {
        flex: none;
        height: 55vh;
        width: 100%;
    }

    .vastu-sidebar {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--primary-color);
        flex-direction: row;
        flex-wrap: wrap;
        overflow-y: visible;
        overflow-x: auto;
        max-height: 45vh;
        overflow-y: auto;
    }

    .sb-section {
        min-width: 180px;
        flex: 1;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding: 10px 12px;
    }

    .sb-section:last-child {
        border-right: none;
    }

    .toggle-row {
        font-size: 12px;
        padding: 5px 0;
    }

    .analysis-hint {
        font-size: 11px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {

    .vastu-wrapper {
        height: 100dvh;
    }

    .vastu-toolbar {
        padding: 5px 8px;
        gap: 4px;
    }

    .vastu-toolbar .btn-tool {
        padding: 5px 7px;
    }

    .vastu-canvas-wrap {
        height: 50vh;
    }

    .vastu-sidebar {
        flex-direction: column;
        max-height: 50vh;
    }

    .sb-section {
        min-width: unset;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .drop-hint i {
        font-size: 30px;
    }

    .drop-hint p {
        font-size: 12px;
    }

    .page-badge {
        width: 26px;
        height: 26px;
        font-size: 11px;
        top: 6px;
        right: 6px;
    }

    .rot-input-row {
        gap: 4px;
    }

    .rot-input-row input[type=number] {
        font-size: 11px;
        padding: 4px 5px;
    }

    .rot-input-row .btn-reset {
        padding: 4px 7px;
        font-size: 10px;
    }
}

/* PDF Modal CSS */
#pdfModal .modal-content {
    border: none;
    border-radius: 10px;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

#pdfModal .modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-section);
}

#pdfModal .modal-title {
    font-weight: 600;
    color: var(--text-dark);
}

#pdfModal .modal-body {
    color: var(--text-light);
    font-size: 14px;
}

#pdfModal .form-label {
    font-weight: 500;
    color: var(--text-dark);
}

#pdfModal .form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    font-size: 14px;
}

#pdfModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(212, 160, 23, 0.25);
}

#pdfModal .modal-footer {
    border-top: 1px solid var(--border-color);
}

#skipPdf {
    background: #f1f1f1;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 6px;
    padding: 6px 14px;
}

#skipPdf:hover {
    background: #e7e7e7;
}

#generatePdfBtn {
    background: var(--primary-color);
    border: none;
    color: var(--text-white);
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: 500;
}

#generatePdfBtn:hover {
    background: var(--primary-dark);
}

#pdfModal .btn-close {
    filter: brightness(0.4);
}

/* Numero Vastu Page CSS */
.nv-wrapper {
    min-height: 100vh;
    background: #0f0f14;
    color: #e8e0f0;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 15px;
}

.nv-hero {
    background: linear-gradient(135deg, #6c3bbd 0%, #8b5cf6 50%, #a78bfa 100%);
    padding: 48px 32px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.nv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.nv-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -1px;
    position: relative;
}

.nv-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px;
    position: relative;
}

.nv-hero-btn {
    display: inline-block;
    background: #f59e0b;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: background .2s, transform .15s;
}

.nv-hero-btn:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.nv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 36px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .nv-body {
        grid-template-columns: 1fr;
    }
}

.nv-card {
    background: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 28px;
}

.nv-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #e8e0f0;
    margin: 0 0 22px;
}

.nv-label {
    font-size: 13px;
    font-weight: 600;
    color: #a0a0b8;
    margin-bottom: 8px;
    display: block;
}

.nv-input {
    width: 100%;
    background: #12121c;
    border: 1.5px solid #2e2e42;
    border-radius: 10px;
    color: #e8e0f0;
    font-size: 15px;
    padding: 13px 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}

.nv-input:focus {
    border-color: #8b5cf6;
}

.nv-input::placeholder {
    color: #555570;
}

.nv-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #555570;
    font-size: 13px;
    font-weight: 600;
}

.nv-or::before,
.nv-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a3a;
}

.nv-results-title {
    font-size: 20px;
    font-weight: 800;
    color: #e8e0f0;
    text-align: center;
    margin: 28px 0 18px;
}

.nv-result-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.nv-result-card {
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.nv-result-card.moolank {
    background: linear-gradient(135deg, #7c3aed, #9d5cf6);
}

.nv-result-card.bhagyank {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.nv-result-card .rc-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.nv-result-card .rc-number {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.nv-result-card .rc-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.nv-favor-card {
    background: #12121c;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.nv-favor-planet {
    font-size: 17px;
    font-weight: 800;
    color: #a78bfa;
    margin-bottom: 14px;
    text-align: center;
}

.nv-favor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nv-favor-group label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nv-tag {
    background: #1e1e2e;
    border: 1px solid #3a3a52;
    color: #c4b8e0;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.nv-digits-card {
    background: #12121c;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.nv-digits-card .dc-title {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    margin-bottom: 14px;
}

.nv-digits-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nv-digit-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-missing-title {
    font-size: 20px;
    font-weight: 800;
    color: #a78bfa;
    text-align: center;
    margin: 28px 0 6px;
}

.nv-missing-sub {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 18px;
}

.nv-vastu-dir {
    background: #12121c;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.nv-vastu-dir-title {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nv-vastu-dir-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nv-vastu-dir-tag {
    background: #1e1e2e;
    border: 1px solid #3a3a52;
    color: #e8e0f0;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
}

.nv-planet-card {
    background: #12121c;
    border: 1px solid #2a2a3a;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 14px;
}

.nv-planet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.nv-planet-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ea4335;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nv-planet-name {
    font-size: 17px;
    font-weight: 700;
    color: #e8e0f0;
}

.nv-planet-dir {
    font-size: 12px;
    color: #a78bfa;
    font-weight: 600;
}

.nv-section-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nv-section-label.problems {
    color: #f59e0b;
}

.nv-section-label.remedies {
    color: #a78bfa;
}

.nv-section-label.vastu {
    color: #f59e0b;
}

.nv-planet-text {
    font-size: 13px;
    color: #b0a8c8;
    margin-bottom: 14px;
    line-height: 1.6;
}

.nv-vastu-box {
    background: #0f0f18;
    border: 1px solid #252535;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #a0a0b8;
    line-height: 1.6;
}

.nv-grid-wrap {
    position: sticky;
    top: 20px;
}

.nv-grid-title {
    font-size: 20px;
    font-weight: 700;
    color: #e8e0f0;
    text-align: center;
    margin-bottom: 6px;
}

.nv-grid-hint {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.nv-compass {
    position: relative;
    padding: 32px;
}

.nv-compass-label {
    position: absolute;
    font-size: 13px;
    font-weight: 700;
    color: #888;
}

.nv-compass-label.N {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.nv-compass-label.S {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.nv-compass-label.E {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.nv-compass-label.W {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.nv-compass-label.NE {
    top: 8px;
    right: 8px;
}

.nv-compass-label.NW {
    top: 8px;
    left: 8px;
}

.nv-compass-label.SE {
    bottom: 8px;
    right: 8px;
}

.nv-compass-label.SW {
    bottom: 8px;
    left: 8px;
}

.nv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nv-grid-cell {
    background: #1e1e2e;
    border: 2px solid #2a2a3a;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    position: relative;
    transition: border-color .3s, background .3s, transform .2s;
    cursor: default;
}

.nv-grid-cell.active-moolank {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-color: #60a5fa;
    transform: scale(1.04);
}

.nv-grid-cell.active-bhagyank {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-color: #fbbf24;
    transform: scale(1.04);
}

.nv-grid-cell.active-dob {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border-color: #a78bfa;
    transform: scale(1.04);
}

.nv-grid-cell.active-both {
    background: linear-gradient(135deg, #065f46, #10b981);
    border-color: #34d399;
    transform: scale(1.06);
}

.nv-grid-num {
    font-size: 32px;
    font-weight: 900;
    color: #e8e0f0;
    line-height: 1;
    margin-bottom: 6px;
}

.nv-grid-elem {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nv-grid-cell.active-moolank .nv-grid-num,
.nv-grid-cell.active-bhagyank .nv-grid-num,
.nv-grid-cell.active-dob .nv-grid-num,
.nv-grid-cell.active-both .nv-grid-num {
    color: #fff;
}

.nv-grid-cell.active-moolank .nv-grid-elem,
.nv-grid-cell.active-bhagyank .nv-grid-elem,
.nv-grid-cell.active-dob .nv-grid-elem,
.nv-grid-cell.active-both .nv-grid-elem {
    color: rgba(255, 255, 255, 0.75);
}

.nv-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f59e0b;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f0f14;
}

.nv-hidden {
    display: none !important;
}

/* Name Correction Page CSS */
.nc-wrapper {
    min-height: 100vh;
    background: #1a1a2e;
    color: #e8e0f0;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 15px;
}

.nc-hero {
    background: linear-gradient(135deg, #4a1fa8 0%, #7c3aed 50%, #a78bfa 100%);
    padding: 48px 32px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.nc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.nc-hero h1 {
    font-size: 46px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -1px;
    position: relative;
}

.nc-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    position: relative;
}

.nc-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 24px;
}

.nc-card {
    background: #252540;
    border: 1px solid #3a3a5c;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
}

.nc-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #c084fc;
    text-align: center;
    margin: 0 0 8px;
}

.nc-card-sub {
    font-size: 14px;
    color: #9090b0;
    text-align: center;
    margin: 0 0 28px;
}

.nc-label {
    font-size: 15px;
    font-weight: 700;
    color: #e8e0f0;
    margin-bottom: 10px;
    display: block;
}

.nc-input {
    width: 100%;
    background: #1a1a2e;
    border: 1.5px solid #3a3a5c;
    border-radius: 10px;
    color: #e8e0f0;
    font-size: 16px;
    padding: 14px 18px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
    margin-bottom: 24px;
}

.nc-input:focus {
    border-color: #8b5cf6;
}

.nc-input::placeholder {
    color: #555575;
}

.nc-btn-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.nc-btn {
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .15s;
}

.nc-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.nc-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
}

.nc-btn-secondary {
    background: #2e2e48;
    color: #e8e0f0;
    border: 1.5px solid #3a3a5c;
}

.nc-breakdown-title {
    font-size: 16px;
    font-weight: 700;
    color: #e8e0f0;
    text-align: center;
    margin-bottom: 20px;
}

.nc-letters-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.nc-letter-box {
    background: #1e1e38;
    border: 1.5px solid #3a3a5c;
    border-radius: 10px;
    width: 62px;
    height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nc-letter-box .ltr {
    font-size: 20px;
    font-weight: 800;
    color: #e8e0f0;
    text-transform: uppercase;
}

.nc-letter-box .lnum {
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
}

.nc-total {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #9090b0;
    margin-bottom: 24px;
}

.nc-number-box {
    background: #1e1e38;
    border: 1px solid #3a3a5c;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    margin-bottom: 20px;
}

.nc-number-label {
    font-size: 16px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 12px;
}

.nc-number-big {
    font-size: 72px;
    font-weight: 900;
    color: #c084fc;
    line-height: 1;
}

.nc-planet-card {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #6366f1 100%);
    border-radius: 16px;
    padding: 28px;
    color: #fff;
}

.nc-planet-heading {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
}

.nc-traits-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.nc-trait-group .tg-label {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nc-trait-group .tg-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    text-align: center;
}

.nc-remedies-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
}

.nc-remedies-box .rb-label {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nc-remedies-box .rb-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.nc-chart-card {
    background: #252540;
    border: 1px solid #3a3a5c;
    border-radius: 16px;
    padding: 28px;
}

.nc-chart-title {
    font-size: 17px;
    font-weight: 700;
    color: #e8e0f0;
    margin-bottom: 20px;
}

.nc-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .nc-chart-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nc-chart-item .ci-num {
    font-size: 20px;
    font-weight: 800;
    color: #a78bfa;
    margin-bottom: 5px;
}

.nc-chart-item .ci-letters {
    font-size: 14px;
    color: #9090b0;
}

.nc-hidden {
    display: none !important;
}

/* Land Energy Checker Page CSS */
.lec-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.lec-page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lec-page-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.lec-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    margin-bottom: 28px;
}

.lec-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.lec-card-sub {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.lec-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.lec-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--body-bg);
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: auto;
}

.lec-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.lec-btn-calculate {
    flex: 1;
    padding: 13px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .02em;
}

.lec-btn-calculate:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.lec-btn-reset {
    padding: 13px 24px;
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.lec-btn-reset:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

#lec-results {
    display: none;
}

.lec-results-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lec-stat-card {
    border-radius: 12px;
    padding: 20px 24px;
    height: 100%;
}

.lec-stat-card.income {
    background: #fffbea;
    border: 1.5px solid #f5d76e;
}

.lec-stat-card.expenditure {
    background: #fff5f5;
    border: 1.5px solid #f5c6c6;
}

.lec-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.lec-stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.income .lec-stat-value {
    color: #b8860b;
}

.expenditure .lec-stat-value {
    color: #c0392b;
}

.lec-stat-meta {
    font-size: 12px;
    color: var(--text-light);
}

.lec-param-card {
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.lec-param-card.good {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}

.lec-param-card.bad {
    background: #fff5f5;
    border: 1.5px solid #f5c6c6;
}

.lec-param-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.lec-param-card.good .lec-param-title {
    color: #166534;
}

.lec-param-card.bad .lec-param-title {
    color: #991b1b;
}

.lec-param-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.lec-param-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.lec-param-calc {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Room Mapper Page CSS */
.room-mapper-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 155px);
    background: #fff;
    border: 1px solid #e2e4e9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}

.rm-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-bottom: 1px solid #e2e4e9;
    background: #f8fafc;
    flex-shrink: 0;
}

.rm-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1d23;
    margin: 0;
}

.rm-sub {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

.rm-stats {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

.rm-export-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 7px 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background .15s;
}

.rm-export-btn:hover {
    background: #1d4ed8;
}

.rm-canvas-wrap {
    flex: 1;
    overflow: auto;
    background: #f4f5f7;
    position: relative;
}

#grid-canvas {
    display: block;
    cursor: crosshair;
}

#ruler-x {
    position: absolute;
    top: 0;
    pointer-events: none;
    z-index: 4;
}

#ruler-y {
    position: absolute;
    left: 0;
    pointer-events: none;
    z-index: 4;
}

.rm-toolbar {
    height: 56px;
    background: #fff;
    border-top: 1px solid #e2e4e9;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    flex-shrink: 0;
    overflow-x: auto;
}

.rm-sep {
    width: 1px;
    height: 26px;
    background: #e2e4e9;
    margin: 0 4px;
    flex-shrink: 0;
}

.rm-tool {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, border-color .12s;
    color: #1a1d23;
    flex-shrink: 0;
}

.rm-tool:hover {
    background: #f4f5f7;
}

.rm-tool.active {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .12s, border-color .12s;
    flex-shrink: 0;
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: #1a1d23;
    transform: scale(1.15);
}

.rm-zoom-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e4e9;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-zoom-btn:hover {
    background: #f4f5f7;
}

#zoom-label {
    font-size: 12px;
    color: #6b7280;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.rm-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e4e9;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color .12s, background .12s;
    flex-shrink: 0;
}

.rm-action-btn:hover {
    color: #1a1d23;
    background: #f4f5f7;
}

.rm-toolbar-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.rm-toolbar-info strong {
    color: #1a1d23;
    font-weight: 600;
}

#label-editor {
    position: absolute;
    display: none;
    z-index: 20;
    background: #fff;
    border: 1.5px solid #2563eb;
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    align-items: center;
    gap: 6px;
}

#label-editor input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 140px;
    font-family: inherit;
}

#label-editor button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    padding: 2px;
}

#label-ok {
    color: #16a34a;
}

#label-cancel {
    color: #ef4444;
}

#rm-ctx-menu {
    position: fixed;
    display: none;
    background: #fff;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 9999;
    overflow: hidden;
    min-width: 150px;
}

#rm-ctx-menu button {
    display: block;
    width: 100%;
    padding: 9px 16px;
    text-align: left;
    border: none;
    background: none;
    font-size: 13px;
    cursor: pointer;
    color: #1a1d23;
    font-family: inherit;
}

#rm-ctx-menu button:hover {
    background: #f4f5f7;
}

#rm-ctx-menu button.danger {
    color: #ef4444;
}

.ctx-sep {
    height: 1px;
    background: #e2e4e9;
}