/* =========================================================
   SAFETY SYNC ADMIN UI
========================================================= */

body {
    background: #eef1f6;
    font-family: "Inter", sans-serif;
}

/* HEADER */
.app.app-header-fixed .app-header {
    left: 0 !important;
}

.app-header.safety-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1030;
}

/* BRAND */
.safety-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.safety-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.safety-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .22);
}

.safety-brand-text {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.2px;
}

.safety-brand-text span {
    color: #8b8b8b;
    font-weight: 500;
}

/* MOBILE BUTTON */
.safety-mobile-toggler {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    display: none;
}

/* TOP ACTION */
.safety-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.safety-top-icon {
    position: relative;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 18px;
    transition: .2s;
}

.safety-top-icon:hover {
    background: #f4f7fb;
    color: #16a34a;
}

.safety-top-icon.has-noti span {
    position: absolute;
    top: -5px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
}

.safety-top-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

/* USER */
.safety-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.safety-user-link::after {
    display: none;
}

.safety-user-link img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.safety-user-link strong {
    font-size: 12px;
    font-weight: 700;
}

.safety-user-link .fa-chevron-down {
    font-size: 10px;
    color: #6b7280;
}

/* SIDEBAR */
.safety-sidebar {
    width: 242px;
    top: 10px;
    /* height: calc(100vh - 64px); */
    background: #ffffff;
    border-right: 1px solid #edf0f4;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.safety-sidebar::-webkit-scrollbar {
    width: 6px;
}

.safety-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.app-sidebar-bg {
    display: none;
}

/* PROFILE */
.sidebar-profile {
    padding: 18px 22px 16px;
    background: #f4f5f8;
    border-bottom: 1px solid #eceff3;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-row img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-row h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.profile-row p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.switch-role-btn {
    margin-top: 12px;
    height: 30px;
    padding: 0 14px;
    border-radius: 7px;
    border: 1px solid #16a34a;
    background: #fff;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    transition: .2s;
}

.switch-role-btn:hover {
    background: #16a34a;
    color: #fff;
}

/* MENU */
.sidebar-menu-box {
    padding-top: 14px;
}

.menu-title {
    padding: 0 28px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #8a8f98;
}

.safety-menu {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 28px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

.safety-menu i {
    width: 18px;
    font-size: 16px;
}

.safety-menu:hover {
    background: #f0faf4;
    color: #16a34a;
}

.safety-menu:hover i {
    color: #16a34a;
}

.safety-menu.active {
    background: #16803d;
    color: #fff;
}

.safety-menu.active i {
    color: #fff;
}

.safety-menu.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #7ef0ab;
}

/* SETTINGS SUBMENU */
.safety-menu-group .settings-submenu {
    display: none;
    background: #fff;
    padding: 8px 0 16px 30px;
}

.safety-menu-group.open .settings-submenu {
    display: block;
}

.settings-submenu-link {
    display: block;
    padding: 9px 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
}

.settings-submenu-link:hover,
.settings-submenu-link.active {
    color: #15803d;
}

.settings-submenu-link.active {
    font-weight: 700;
}

.menu-arrow {
    font-size: 11px;
    transition: .2s;
}

.safety-menu-group.open .menu-arrow {
    transform: rotate(180deg);
}

/* CONTENT */
.app-content,
#content {
    margin-left: 242px;
    padding-top: 64px;
}

/* DROPDOWN */
.dropdown-menu {
    border: 1px solid #edf0f4;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .08);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 14px;
}

.dropdown-item:hover {
    background: #f4f7fb;
}

/* MOBILE */
@media (max-width: 991px) {
    .app-header.safety-topbar {
        padding: 0 18px;
    }

    .safety-mobile-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .safety-sidebar {
        top: 10px;
    }

    .safety-top-divider,
    .safety-top-icon {
        display: none;
    }

    .safety-user-link strong {
        display: none;
    }

    .app-content,
    #content {
        margin-left: 0;
    }
}
