:root {
    --black: #19191A;
    --white: #fff;
    --orange: #ff971d;
    --orange-rgb: 255, 151, 29;
}
[data-theme="light"] {
    --black: #fff;
    --white: #19191A;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.custom-admin-header,
.custom-admin-footer {
    background: var(--black);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-admin-header {
    color: var(--white);
    border-bottom: 2px solid var(--orange);
}

.custom-admin-footer {
    color: #999;
}

.custom-admin-profile-btn {
    background: var(--orange);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: white;
    position: relative;
    font-size: 2rem;
}

.custom-admin-profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-admin-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    color: black;
    border-radius: 0px 0px 8px 8px;
    min-width: 12rem;
    opacity: 0;
    border: 1px solid #eee;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 4px 12px;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.3s ease;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

    .custom-admin-dropdown.custom-admin-show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .custom-admin-dropdown a {
        display: block;
        padding: 15px;
        text-decoration: none;
        color: black;
        transition: all 0.3s;
    }

        .custom-admin-dropdown a:hover {
            background: #ddd;
            padding-left: 10px;
        }

.custom-admin-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    transition: all 0.3s;
}

.custom-admin-sidebar {
    opacity: 1;
    color: var(--white);
    width: 35%;
    max-width: 20rem;
    background: var(--black);
    padding: 30px 20px 0px 2px;
    box-shadow: rgba(0, 0, 0, 1) 0px 2px 5px;
    transition: transform 0.3s, width 0.3s;
    max-height: calc(100% - 98px);
    overflow: auto;
}

    .custom-admin-sidebar ul {
        list-style-type: none;
    }

        .custom-admin-sidebar ul li {
            padding: 0.6rem;
        }

    .custom-admin-sidebar a {
        text-decoration: none;
        color: white;
    }

    .custom-admin-sidebar.custom-admin-hidden {
        transform: translateX(-100%);
        width: 0;
        padding: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s, width 0.3s;
    }

.custom-admin-content {
    flex: 1;
    padding: 1rem 2rem;
    transition: all 0.3s;
    text-align: justify;
    color: var(--white);
    background-color: var(--black);
}

.custom-admin-title {
    width: 100%;
    font-size:1.2rem;
}

.custom-admin-toggle {
    margin-right: 10px;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 3px 8px 0px 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.6rem;
}

html[dir="rtl"] .custom-admin-dropdown {
    right: auto;
    left: 0;
}

    html[dir="rtl"] .custom-admin-dropdown a:hover {
        padding-left: 0;
        padding-right: 10px;
    }

html[dir="rtl"] .custom-admin-sidebar.custom-admin-hidden {
    transform: translateX(100%);
}

html[dir="rtl"] .custom-admin-toggle {
    margin-right: 0;
    margin-left: 10px;
}
@media(max-width: 991px) {
    .custom-admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        max-height: 100%;
        width: 75%;
        z-index: 2001;
        background: var(--black);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        opacity: 1;
        border: 2px solid var(--orange);
        padding: 30px 20px 0px 20px;
    }

        .custom-admin-sidebar.custom-admin-open {
            transform: translateX(0);
        }

    .custom-admin-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.4);
        z-index: 2000;
        display: none;
    }

        .custom-admin-overlay.show {
            display: block;
        }

    html[dir="rtl"] .custom-admin-sidebar {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }

        html[dir="rtl"] .custom-admin-sidebar.custom-admin-open {
            transform: translateX(0);
        }
}