.adminPage {
    width: 100%;
    min-height: calc(100vh - 86px);
    background: #fafafa;
    font-family: 'Josefin Sans', sans-serif;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    padding: 28px;
}

/* SIDEBAR */

.adminSidebar {
    min-height: calc(100vh - 142px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
}

.adminSideLogo {
    padding: 0 14px 26px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.adminSideLogo span {
    color: #ff5b00;
}

.adminSideLogo p {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

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

.adminMenu a {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 15px;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 15px;
    font-weight: 900;
    transition: 0.2s ease;
}

.adminMenu a i {
    width: 20px;
}

.adminMenu a:hover,
.adminMenu a.active {
    background: rgba(255, 91, 0, 0.09);
    color: #ff5b00;
}

.adminVersion {
    margin-top: auto;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.07);
}

.adminVersion strong {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 8px;
}

.adminVersion span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
}

.adminVersion small {
    color: #9ca3af;
    font-weight: 800;
}

/* CONTENT */

.adminContent {
    min-width: 0;
}

.adminHero {
    min-height: 190px;
    border-radius: 26px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.38)),
        url('/img/background/home.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    padding: 44px 58px;
}

.adminMiniTitle {
    color: #ff5b00;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.adminMiniTitle i {
    font-size: 7px;
}

.adminHero h1 {
    color: #111827;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.8px;
    margin-bottom: 14px;
}

.adminHero p {
    max-width: 520px;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 700;
}

/* STATS */

.adminStats {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.adminStatCard {
    min-height: 120px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 24, 39, 0.07);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.adminStatIcon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 91, 0, 0.09);
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.adminStatIcon.shield {
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
}

.adminStatIcon.user {
    background: rgba(22, 163, 74, 0.10);
    color: #16a34a;
}

.adminStatIcon.calendar {
    background: rgba(168, 85, 247, 0.10);
    color: #9333ea;
}

.adminStatCard span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
}

.adminStatCard strong {
    display: block;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    margin: 5px 0;
}

.adminStatCard p {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

/* TABLE */

.adminTableCard {
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

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

.adminTableHeader h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
}

.adminTableHeader p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.adminSearchBox {
    width: 310px;
    height: 48px;
    border-radius: 15px;
    background: #fff;
    border: 2px solid rgba(230, 171, 44, 0.295);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
}

.adminSearchBox i {
    color: #6b7280;
}

.adminSearchBox input {
    width: 100%;
    border: none;
    outline: none;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
}

.adminTableWrapper {
    width: 100%;
    overflow-x: auto;
}

.adminTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.adminTable th {
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.adminTable td {
    color: #111827;
    font-size: 14px;
    font-weight: 750;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

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

.adminUserCell {
    display: flex;
    align-items: center;
    gap: 13px;
}

.adminUserCell img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.adminUserCell strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 3px;
}

.adminUserCell span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.roleBadge,
.verifyBadge {
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
}

.roleBadge.role-admin {
    background: rgba(255, 91, 0, 0.10);
    color: #ff5b00;
}

.roleBadge.role-user {
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
}

.verifyBadge.verified {
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
}

.verifyBadge.waiting {
    background: rgba(234, 179, 8, 0.13);
    color: #a16207;
}

/* RESPONSIVE */

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

    .adminSidebar {
        min-height: auto;
    }

    .adminStats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .adminPage {
        padding: 18px;
    }

    .adminHero {
        padding: 34px 28px;
    }

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

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

    .adminSearchBox {
        width: 100%;
    }
}




/* ============================= */
/* USER ACTION MENU */
/* ============================= */

.userActionMenu {
    position: relative;
    width: fit-content;
}

.userActionButton {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 13px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.userActionButton:hover {
    background: rgba(255, 91, 0, 0.08);
    color: #ff5b00;
    border-color: rgba(255, 91, 0, 0.20);
}

.userActionDropdown {
    position: absolute;
    right: 0;
    top: 46px;
    width: 175px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
    display: none;
    z-index: 50;
}

.userActionDropdown.show {
    display: block;
}

.userActionDropdown button,
.disabledAction {
    width: 100%;
    min-height: 38px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #374151;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    font-family: inherit;
    text-align: left;
    transition: 0.18s ease;
}

.userActionDropdown button:hover {
    background: rgba(255, 91, 0, 0.08);
    color: #ff5b00;
}

.userActionDropdown button:hover i {
    color: #ff5b00;
}

.deleteUserButton {
    color: #dc2626 !important;
}

.deleteUserButton:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
}

.deleteUserButton:hover i {
    color: #dc2626 !important;
}

.disabledAction {
    color: #9ca3af;
    cursor: not-allowed;
}

.disabledAction i {
    color: #9ca3af;
}





/* ============================= */
/* ADMIN CONFIRM MODAL */
/* ============================= */

.adminConfirmModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.adminConfirmModal.show {
    display: flex;
}

.adminConfirmBox {
    width: min(92vw, 430px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 26px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
    animation: adminModalIn 0.22s ease;
}

@keyframes adminModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

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

.adminConfirmIcon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: rgba(255, 91, 0, 0.10);
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.adminConfirmIcon.role {
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
}

.adminConfirmIcon.danger {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
}

.adminConfirmBox h3 {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.adminConfirmBox p {
    color: #6b7280;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
    margin-bottom: 24px;
}

.adminConfirmActions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.adminConfirmActions button {
    height: 44px;
    min-width: 120px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.adminConfirmCancel {
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: #fff;
    color: #374151;
}

.adminConfirmCancel:hover {
    background: #f3f4f6;
}

.adminConfirmOk {
    border: none;
    background: #ff5b00;
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 91, 0, 0.24);
}

.adminConfirmOk:hover {
    background: #e85200;
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .adminConfirmBox {
        padding: 24px;
        border-radius: 22px;
    }

    .adminConfirmActions {
        flex-direction: column;
    }

    .adminConfirmActions button {
        width: 100%;
    }
}




/* ============================= */
/* ADMIN SIDEBAR DROPDOWN */
/* ============================= */

.adminMenuDropdown {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 91, 0, 0.09);
    color: #ff5b00;
    cursor: pointer;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    transition: 0.2s ease;
}

.adminMenuDropdown span {
    display: flex;
    align-items: center;
    gap: 13px;
}

.adminMenuDropdown:hover {
    background: rgba(255, 91, 0, 0.14);
}

.adminMenuDropdown > i {
    font-size: 12px;
    transition: 0.2s ease;
}

.adminMenuDropdown.active > i {
    transform: rotate(180deg);
}

.adminSubMenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 10px;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 91, 0, 0.16);
}

.adminSubMenu.show {
    display: flex;
}

.adminSubMenu a {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 13px;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.adminSubMenu a:hover,
.adminSubMenu a.active {
    background: rgba(255, 91, 0, 0.08);
    color: #ff5b00;
}

/* ============================= */
/* ROLES PANEL NEW */
/* ============================= */

.rolesPanel {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 24px;
    align-items: start;
}

.rolesListCard,
.roleDetailCard {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 26px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.06);
}

.rolesListCard {
    padding: 24px;
}

.rolesListHeader {
    margin-bottom: 18px;
}

.rolesListHeader h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
}

.rolesListHeader p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.roleList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roleListItem {
    width: 100%;
    min-height: 78px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: inherit;
    text-align: left;
    transition: 0.22s ease;
}

.roleListItem:hover,
.roleListItem.active {
    border-color: rgba(255, 91, 0, 0.22);
    background: rgba(255, 91, 0, 0.055);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 91, 0, 0.08);
}

.roleListLeft {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.roleListIcon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 91, 0, 0.10);
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.roleListItem:nth-child(2) .roleListIcon {
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
}

.roleListLeft strong {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 5px;
}

.roleListLeft span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.roleListRight {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.roleListRight span {
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
}

.roleListRight i {
    color: #9ca3af;
    font-size: 12px;
    transition: 0.22s ease;
}

.roleListItem:hover .roleListRight i,
.roleListItem.active .roleListRight i {
    color: #ff5b00;
    transform: translateX(3px);
}

/* DETAIL */

.roleDetailCard {
    min-height: 430px;
    padding: 30px;
}

.emptyRoleDetail {
    min-height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.emptyRoleIcon {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: rgba(255, 91, 0, 0.10);
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.emptyRoleDetail h2 {
    color: #111827;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}

.emptyRoleDetail p {
    max-width: 360px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.roleDetailContent {
    display: none;
}

.roleDetailContent.show {
    display: block;
    animation: roleDetailIn 0.22s ease;
}

@keyframes roleDetailIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.roleDetailHeader {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.roleDetailIcon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: rgba(255, 91, 0, 0.10);
    color: #ff5b00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.roleDetailHeader h2 {
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 6px;
}

.roleDetailHeader p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.roleCountBox.compact {
    height: 70px;
    border-radius: 18px;
    background: #fafafa;
    border: 1px solid rgba(17, 24, 39, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 24px;
}

.roleCountBox.compact span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 900;
}

.roleCountBox.compact strong {
    color: #111827;
    font-size: 32px;
    font-weight: 900;
}

.permissionList h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px;
}

.permissionItem {
    min-height: 42px;
    border-radius: 13px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.permissionItem:nth-child(odd) {
    background: rgba(17, 24, 39, 0.025);
}

.permissionItem i {
    color: #16a34a;
}

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

    .roleListLeft span {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .roleListItem {
        align-items: flex-start;
        flex-direction: column;
    }

    .roleListRight {
        width: 100%;
        justify-content: space-between;
    }

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



/* ============================= */
/* ADD ROLE BUTTON */
/* ============================= */

.rolesListHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.addRoleButton {
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 999px;
    background: #ff5b00;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(255, 91, 0, 0.20);
    transition: 0.2s ease;
    flex-shrink: 0;
}

.addRoleButton:hover {
    background: #e85200;
    transform: translateY(-1px);
}






/* ============================= */
/* MODERN ROLE MODAL POLISH */
/* ============================= */

.roleCreateModal,
.roleEditModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.roleCreateModal.show,
.roleEditModal.show {
    display: flex;
}

.roleCreateBox {
    width: min(94vw, 620px);
    max-height: 88vh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    box-shadow:
        0 34px 110px rgba(15, 23, 42, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: roleModalIn 0.24s ease;
}

@keyframes roleModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

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

.roleCreateHeader {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 26px 30px 22px;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 91, 0, 0.14), transparent 32%),
        rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.roleCreateHeader h2 {
    color: #111827;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 7px;
}

.roleCreateHeader p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.roleCreateHeader button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.roleCreateHeader button:hover {
    background: #ff5b00;
    color: #fff;
    transform: rotate(90deg);
}

#roleCreateForm,
#roleEditForm {
    max-height: calc(88vh - 96px);
    overflow-y: auto;
    padding: 26px 30px 30px;
}

#roleCreateForm::-webkit-scrollbar,
#roleEditForm::-webkit-scrollbar {
    width: 8px;
}

#roleCreateForm::-webkit-scrollbar-thumb,
#roleEditForm::-webkit-scrollbar-thumb {
    background: rgba(255, 91, 0, 0.32);
    border-radius: 999px;
}

.roleCreateGroup {
    margin-bottom: 20px;
}

.roleCreateGroup label {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 9px;
}

.roleCreateGroup input,
.roleCreateGroup textarea {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 17px;
    background: #fff;
    color: #111827;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    transition: 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.roleCreateGroup input {
    height: 50px;
    padding: 0 16px;
}

.roleCreateGroup textarea {
    min-height: 110px;
    resize: vertical;
    padding: 15px 16px;
    line-height: 1.6;
}

.roleCreateGroup input:focus,
.roleCreateGroup textarea:focus {
    border-color: rgba(255, 91, 0, 0.46);
    box-shadow:
        0 0 0 4px rgba(255, 91, 0, 0.09),
        0 14px 30px rgba(255, 91, 0, 0.07);
}

/* ========================================= */
/* CHECKBOX YETKİ KARTLARI (MODERN GRID)     */
/* ========================================= */

.permissionCheckGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.permissionCheckItem {
    min-height: 50px !important;
    padding: 10px 15px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(17, 24, 39, 0.10) !important;
    cursor: pointer !important;
    
    /* Yanyana hizalamayı zorlayan kritik kısım: */
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important; 
    justify-content: flex-start !important;
    gap: 12px !important;
    
    transition: 0.2s ease !important;
    user-select: none !important;
}

.permissionCheckItem:hover {
    border-color: rgba(255, 91, 0, 0.24) !important;
    background: rgba(255, 91, 0, 0.035) !important;
}

.permissionCheckItem input {
    display: none !important;
}

/* KUTUCUK */
.customCheckIndicator {
    width: 24px !important;
    height: 24px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(17, 24, 39, 0.15) !important;
    background: #f9fafb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important; /* Dış boşlukları sıfırladık */
    transition: 0.2s ease !important;
}

/* TİK İŞARETİ */
.customCheckIndicator i {
    font-size: 12px !important;
    color: white !important;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* YETKİ METNİ */
.permLabelText {
    /* Metnin yan yana durmasını ve kutuyu taşırmamasını sağlar: */
    display: block !important;
    flex: 1 !important; 
    text-align: left !important;
    margin: 0 !important;
    
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #374151 !important;
    background: transparent !important;
    border: none !important;
    line-height: 1.4 !important;
}

/* ========================================= */
/* SEÇİLİ (CHECKED) DURUMU                   */
/* ========================================= */

.permissionCheckItem:has(input:checked) {
    background: rgba(255, 91, 0, 0.08) !important;
    border-color: rgba(255, 91, 0, 0.28) !important;
}

.permissionCheckItem:has(input:checked) .customCheckIndicator {
    background: #ff5b00 !important;
    border-color: #ff5b00 !important;
}

.permissionCheckItem:has(input:checked) .customCheckIndicator i {
    opacity: 1;
    transform: scale(1);
}

.permissionCheckItem:has(input:checked) .permLabelText {
    color: #ff5b00 !important;
    font-weight: 900 !important;
}


/* Mesaj ve buton alanı */

.roleCreateMessage {
    margin: 18px 0;
}

#roleCreateMessage,
#roleEditMessage {
    display: none;
    min-height: 44px;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#roleCreateMessage.show,
#roleEditMessage.show {
    display: flex;
}

#roleCreateMessage.success,
#roleEditMessage.success {
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.18);
}

#roleCreateMessage.error,
#roleEditMessage.error {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.18);
}

.roleCreateActions {
    position: sticky;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(250, 250, 250, 0), rgba(250, 250, 250, 1) 22%);
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.roleCreateActions button {
    height: 46px;
    min-width: 132px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.roleCancelButton {
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: #fff;
    color: #374151;
}

.roleCancelButton:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.roleSaveButton {
    border: none;
    background: #ff5b00;
    color: #fff;
    box-shadow: 0 16px 30px rgba(255, 91, 0, 0.26);
}

.roleSaveButton:hover {
    background: #e85200;
    transform: translateY(-1px);
}

/* Rolü düzenle butonu */

.editRoleButton {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 91, 0, 0.09);
    color: #ff5b00;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    margin-left: auto;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.editRoleButton:hover {
    background: #ff5b00;
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 91, 0, 0.22);
    transform: translateY(-1px);
}

@media (max-width: 620px) {
    .roleCreateBox {
        border-radius: 24px;
    }

    .roleCreateHeader {
        padding: 22px;
    }

    #roleCreateForm,
    #roleEditForm {
        padding: 22px;
    }

    .roleCreateActions {
        flex-direction: column;
    }

    .roleCreateActions button {
        width: 100%;
    }

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

    .editRoleButton {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}






.roleDetailActions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.deleteRoleButton {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    transition: 0.2s ease;
}

.deleteRoleButton:hover {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.18);
    transform: translateY(-1px);
}

.roleDetailActions .editRoleButton {
    margin-left: 0;
}

@media (max-width: 620px) {
    .roleDetailActions {
        width: 100%;
        flex-direction: column;
        margin-left: 0;
    }

    .roleDetailActions button {
        width: 100%;
        justify-content: center;
    }
}



/* ============================= */
/* ROLE DELETE MODAL */
/* ============================= */

.roleDeleteModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.roleDeleteModal.show {
    display: flex;
}

.roleDeleteBox {
    width: min(92vw, 430px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    padding: 34px 30px 30px;
    text-align: center;
    box-shadow:
        0 34px 110px rgba(15, 23, 42, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: roleDeleteIn 0.24s ease;
}

@keyframes roleDeleteIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

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

.roleDeleteIcon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.10);
}

.roleDeleteBox h2 {
    color: #111827;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.roleDeleteBox > p {
    color: #6b7280;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.65;
    margin-bottom: 22px;
}

.roleDeleteMessage {
    margin-bottom: 16px;
}

#roleDeleteMessage {
    display: none;
    min-height: 44px;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#roleDeleteMessage.show {
    display: flex;
}

#roleDeleteMessage.success {
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.18);
}

#roleDeleteMessage.error {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.18);
}

.roleDeleteActions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.roleDeleteActions button {
    height: 46px;
    min-width: 126px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.roleDeleteCancel {
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: #fff;
    color: #374151;
}

.roleDeleteCancel:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.roleDeleteConfirm {
    border: none;
    background: #dc2626;
    color: #fff;
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.22);
}

.roleDeleteConfirm:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.roleDeleteConfirm:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 520px) {
    .roleDeleteBox {
        padding: 28px 22px 22px;
        border-radius: 24px;
    }

    .roleDeleteActions {
        flex-direction: column;
    }

    .roleDeleteActions button {
        width: 100%;
    }
}

.roleBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}

/* USER */
.roleBadge.user {
    color: #6b9ef0;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.18);
    font-weight: 900;
}

/* ADMIN */
.roleBadge.admin {
    color: #ff6b00;
    background: rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.18);
    font-weight: 900;
}

/* FOUNDER */
.roleBadge.founder {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.20);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.10);
    font-weight: 900;
}


.roleLockedBadge {
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.08);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.roleLockedBadge i {
    font-size: 12px;
}






/* ============================= */
/* USER DETAIL & MANAGE MODAL    */
/* ============================= */
.userDetailModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.userDetailModal.show {
    display: flex;
}

.userDetailBox {
    width: min(94vw, 680px); /* Modalı genişlettik */
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    box-shadow: 0 34px 110px rgba(15, 23, 42, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: roleModalIn 0.24s ease;
}

.userDetailBox::-webkit-scrollbar { width: 6px; }
.userDetailBox::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.userDetailHeader {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 26px 30px 20px;
    background: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.06), transparent 32%), rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.userDetailHeader h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
}

.userDetailHeader p { color: #6b7280; font-size: 13px; font-weight: 750; }

.userDetailHeader button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}
.userDetailHeader button:hover { background: #dc2626; color: #fff; transform: rotate(90deg); }

.userDetailBody { padding: 30px; }

.detailTop {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.detailAvatarWrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    border: 2px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.12);
}
.detailAvatarWrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.detailTop h3 { color: #111827; font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.detailTop p { color: #6b7280; font-size: 15px; font-weight: 700; margin-bottom: 8px;}

.detailInfoGrid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Sütunlu ızgara */
    gap: 16px;
    margin-bottom: 26px;
}

.detailInfoItem {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
}

.detailInfoItem i { font-size: 20px; color: #94a3b8; width: 24px; text-align: center; }
.detailInfoItem label { display: block; color: #64748b; font-size: 12px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; }
.detailInfoItem strong { color: #0f172a; font-size: 14px; font-weight: 800; }

/* Yönetim Alanı (Geniş Modal İçin) */
.detailManagementArea {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.detailManagementArea h3 {
    font-size: 17px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.detailManagementArea h3 i { color: #ff5b00; }

.formGroup label { display: block; font-size: 14px; font-weight: 900; color: #111827; margin-bottom: 8px; }

.modernSelect {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 14px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
}
.modernSelect:focus { border-color: rgba(255, 91, 0, 0.45); box-shadow: 0 0 0 4px rgba(255, 91, 0, 0.08); }
.modernSelect:disabled { background-color: #f1f5f9; cursor: not-allowed; color: #94a3b8; }

.formGroup small { display: block; margin-top: 8px; color: #64748b; font-size: 12px; font-weight: 700; }

.managementActions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.primaryBtn, .dangerBtn {
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
}

.primaryBtn { background: #ff5b00; color: #fff; box-shadow: 0 12px 24px rgba(255, 91, 0, 0.2); }
.primaryBtn:hover { background: #e85200; transform: translateY(-1px); }
.primaryBtn:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }

.dangerBtn { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.dangerBtn:hover { background: #dc2626; color: #fff; box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2); transform: translateY(-1px); }
.dangerBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; background: rgba(220, 38, 38, 0.05); }

@media(max-width: 650px) {
    .detailInfoGrid { grid-template-columns: 1fr; }
    .managementActions { flex-direction: column-reverse; }
    .managementActions button { width: 100%; justify-content: center; }
}




/* ============================= */
/* DRAG & DROP (SORTABLE) STİLLERİ */
/* ============================= */

/* Butonun genel tıklanabilirliğini geri veriyoruz */
.roleListItem {
    cursor: pointer !important; 
}

/* Sürükleme Tutamacı Tasarımı */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 4px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    cursor: grab;
    transition: color 0.2s ease;
}

.drag-handle:active {
    cursor: grabbing;
}

.roleListItem:hover .drag-handle {
    color: #94a3b8;
}

.drag-handle:hover {
    color: #ff5b00 !important;
}

/* Sürüklenen elementin arkasında kalan boşluk */
.sortable-ghost {
    opacity: 0.3;
    background: #f8fafc;
    border: 2px dashed #cbd5e1 !important;
    transform: scale(0.98);
}

/* Fareyle havaya kaldırılan element */
.sortable-drag {
    opacity: 1 !important;
    box-shadow: 0 25px 50px rgba(255, 91, 0, 0.15), 0 10px 20px rgba(15, 23, 42, 0.1) !important;
    border-color: rgba(255, 91, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    transform: scale(1.02) !important;
    z-index: 99999;
}


/* ============================= */
/* LOG SAYFASI STİLLERİ          */
/* ============================= */
.logListArea {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* --- SCROLL İÇİN EKLENEN YENİ KISIM --- */
    max-height: 65vh; /* Sayfada kaplayacağı maksimum yükseklik */
    overflow-y: auto; /* Sadece taştığında kaydırma çubuğu çıkar */
    padding-right: 12px; /* Scrollbar ile içerik arasına boşluk */
}

/* --- LOG ALANINA ÖZEL SCROLLBAR TASARIMI --- */
.logListArea::-webkit-scrollbar {
    width: 6px;
}

.logListArea::-webkit-scrollbar-track {
    background: transparent;
}

.logListArea::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Senin mevcut gri tonlarına uygun */
    border-radius: 10px;
}

.logListArea::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* Üzerine gelince bir tık koyulaşır */
}

/* --- AŞAĞIDAKİ KODLAR SENİN DOSYANDA ZATEN AYNI ŞEKİLDE DURACAK --- */
.logItem {
    display: flex;
    gap: 18px;
}

.logIcon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.logIcon.info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.logIcon.success { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.logIcon.warning { background: rgba(245, 158, 11, 0.1); color: #eab308; }
.logIcon.danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.logContent { flex: 1; }

.logHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.logUser { display: flex; align-items: center; gap: 10px; }
.logUser img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.logUser strong { font-size: 14px; color: #111827; font-weight: 800; }
.logUser span { color: #64748b; font-weight: 600; }

.logDate { font-size: 12px; color: #94a3b8; font-weight: 700; }

.logMessage { color: #475569; font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }

.logBadge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.logBadge.info { background: #eff6ff; color: #2563eb; }
.logBadge.success { background: #f0fdf4; color: #16a34a; }
.logBadge.warning { background: #fefce8; color: #ca8a04; }
.logBadge.danger { background: #fef2f2; color: #dc2626; }


/* style.css içine eklenecek rozet renkleri */
/* FOUNDER */
.roleBadge.moderator {
    color: #870dac;
    background: rgba(240, 24, 240, 0.12);
    border-color: rgba(212, 24, 236, 0.2);
    box-shadow: 0 8px 20px rgba(199, 38, 220, 0.1);
    font-weight: 900;
}

.roleBadge.creator {
    color: #870dac;
    background: rgba(240, 24, 240, 0.12);
    border-color: rgba(212, 24, 236, 0.2);
    box-shadow: 0 8px 20px rgba(199, 38, 220, 0.1);
    font-weight: 900;
}

.roleBadge.administrator {
    color: #870dac;
    background: rgba(240, 24, 240, 0.12);
    border-color: rgba(212, 24, 236, 0.2);
    box-shadow: 0 8px 20px rgba(199, 38, 220, 0.1);
    font-weight: 900;
}


/* ============================= */
/* ROL LISTESI YENI GORUNUM (ROZETLI) */
/* ============================= */

/* Yeni Rozet ve Başlık Hizalaması */
.roleTitleWithBadge {
    display: flex;
    align-items: center;
    gap: 10px; /* Başlık ile rozet arasındaki boşluk */
    margin-bottom: 4px; /* Altındaki açıklama yazısıyla mesafe */
}

.roleTitleWithBadge strong {
    font-size: 15px;
    font-weight: 800;
    color: #111827; /* Açık temana uygun koyu renk (Önce beyazdı, düzelttim) */
}

/* Yeni Şık Kullanıcı Rozeti */
.roleUserBadge {
    display: inline-flex;
    align-items: center;
    background: #e4753a;
    color: #ffffff !important;      /* Bembeyaz yazı */
    padding: 3px 10px;
    border-radius: 999px; /* Tam yuvarlak hatlar */
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border: none;
}

/* Metinlerin taşmasını engellemek için */
.roleListTextContent {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.roleListTextContent > span {
    color: #bcbec2;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Açıklama çok uzunsa 2 satırda keser */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* roleListRight (Artık sadece oku barındırdığı için genişliğini küçültebiliriz) */
.roleListRight {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
    transition: 0.22s ease;
}

.roleListItem:hover .roleListRight,
.roleListItem.active .roleListRight {
    color: #ff5b00; /* Aktif/Hover olunca ok turuncu olur */
    transform: translateX(3px); /* Oku hafifçe sağa kaydırır */
}