@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('variables.css');
@import url('components/buttons.css');
@import url('components/inputs.css');
@import url('components/cards.css');
@import url('components/modals.css');
@import url('components/toggles.css');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    background-color: var(--color-bg-primary);
    height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
}

.tab {
    padding: 14px;
    max-width: 100%;
    width: 260px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.tab::-webkit-scrollbar {
    width: 4px;
    left: -2px;
    position: absolute;
}

.tab::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;

}

.tab::-webkit-scrollbar-thumb {
    background: #1C1C1C;
    border-radius: 10px;
}

.tab .logo .title, .mobile-header .logo .title {
    color: #9A58F6;
    font-weight: 600;
    font-size: 20px;
}

.tab .logo .desc, .mobile-header .logo .desc {
    color: #868686;
    font-weight: 400;
    font-size: 12px;
}

.tab .logo, .mobile-header .logo {
    display: flex;
    gap: 10px;
}

.tab .logo img, .mobile-header .logo img {
    width: 40px;
    height: 40px;
}

.tab .search-box {
    margin-top: 20px;
    padding: 13px;
    background-color: #0D0D0D;
    border-radius: 100px;
    color: #868686;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

input {
    background-color: #0D0D0D;
    border-radius: 100px;
    color: #868686;
    font-size: 14px;
    font-weight: 500;
    border: 0;
    width: 100%;
    padding-left: 3px;

    &:focus {
        outline: none;
    }
}

.line {
    min-height: 1px;
    width: 100%;
    background-color: #1C1C1C;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tab button, .tab .hover-button {
    height: 46px;
    border: 0;
    border-radius: 100px;
    width: 100%;
    background-color: #0D0D0D;
    display: flex;
    align-items: center;
    padding-left: 13px;
    padding-right: 13px;
    gap: 8px;
    color: #868686;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;

    &:hover ~ .sub-buttons {
        max-height: 1000px;
    }
}

.tab .user{
    border-radius: 100px;
    background: rgba(13, 13, 13, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 8px 8px;

    & > div{
        display: flex;
        gap: 6px;
    }

    & p{
        display: flex;
        flex-direction: column;
        line-height: 17px;
        height: fit-content;
        color: #ffffff;
        font-size: 12px;

        & span{
            color: rgba(134, 134, 134, 1);
        }
    }
}

.tab .hovered{
    overflow: hidden;

}

.tab .sub-buttons{
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    transition: .5s ease-in-out;

    & button:first-child{
        margin-top: 10px;
    }

    & button{
        height: 46px;
        min-height: 46px;
    }

    & button:hover{
        color: #fff;
    }

    &:has(button.active){
        max-height: 1000px;
    }

    &:hover{
        max-height: 1000px;
    }

    & button svg{
        padding: 5px 5px;
        border-radius: 50%;
    }

    & button.active, & button:hover{
        & svg{
            background-color: #9A58F6;
            fill: #9A58F6;
            transition: .3s ease;
            display: flex;

            & path{
                fill: #fff;
                stroke: #fff;
                transition: .3s ease;
            }
        }
    }
}

.tab .hover-button:hover .arrow{
    rotate: 180deg;
}

.tab .hover-button {
    justify-content: space-between;
}

.tab .hover-button .arrow {
    padding: 7.5px 6px;
    width: 20px;
    height: 20px;
}

.tab .hover-button > div{
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab button.active, .tab .hover-button:hover {
    color: #fff;
}

.tab button svg, .tab .hover-button svg {
    transition: fill 0.3s ease;
}

.tab button svg rect, .tab .hover-button svg rect {
    transition: fill 0.3s ease;
}

.tab button svg path, .tab .hover-button svg path, .tab button.active svg circle, .tab .hover-button:hover svg circle  {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.tab button.active svg, .tab .hover-button:hover svg {
    fill: #9A58F6;
}

.tab button.active svg path, .tab .hover-button:hover svg path, .tab button.active svg circle, .tab .hover-button:hover svg circle {
    fill: #fff;
    stroke: #fff;
}

.tab button:not(.active) svg, .tab .hover-button:not(:hover) svg {
    fill: none;
}

.tab button:not(.active) svg rect, .tab .hover-button:not(:hover) svg rect {
    fill: #191919;
}

.tab button:not(.active) svg path, .tab .hover-button:not(:hover) svg path {
    fill: #868686;
    stroke: #868686;
}

.tab .buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab .buttons-group .admin-tab p {
    color: #969696;
    font-size: 12px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 10px;
}

.burger-menu {
    display: none;
}

.mobile-header {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

/* Custom Select Styles */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    display: none;
}

label:has(.custom-select)::after {
    display: none !important;
}

.custom-select-trigger {
    border: 1px solid rgba(32, 32, 32, 1);
    border-radius: 12px;
    background: rgba(13, 13, 13, 1);
    padding: 13px;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: border-color 0.2s ease;
    gap: 4px;
    width: 100%;
}

.custom-select-trigger:hover {
    border-color: rgba(52, 52, 52, 1);
}

.custom-select-trigger::after {
    content: url("/assets/img/arrow-select.svg");
    display: block;
    height: 20px;
    width: 20px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 1);
    border: 1px solid rgba(32, 32, 32, 1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, max-height 0.2s ease;
    max-height: 0px;
    overflow-y: auto;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #1C1C1C;
    border-radius: 10px;
}

.custom-select.open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 9999px;
}

.custom-select-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-select-dropdown li {
    padding: 13px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(134, 134, 134, 1);
    cursor: pointer;
    background: rgba(13, 13, 13, 1);
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(32, 32, 32, 1);
}

.custom-select-dropdown li:last-child {
    border-bottom: none;
}

.custom-select-dropdown li:hover {
    background-color: rgba(28, 28, 28, 1);
    color: rgba(255, 255, 255, 1);
}

.custom-select-dropdown li.selected {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(28, 28, 28, 1);
}


/* Custom File Input */
.file-input-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    display: none;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(32, 32, 32, 1);
    border-radius: 12px;
    background: rgba(13, 13, 13, 1);
    padding: 13px;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    color: rgba(134, 134, 134, 1);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.file-input-label:hover {
    border-color: rgba(52, 52, 52, 1);
    color: rgba(255, 255, 255, 1);
}

.file-input-label.white {
    color: rgba(134, 134, 134, 1);
}

.file-input-label svg {
    flex-shrink: 0;
}

.file-input:focus + .file-input-label {
    border-color: rgba(154, 88, 246, 1);
}

.file-name {
    flex: 1;
    text-align: center;
}

.notification {
    background-color: #1C1C1C;
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 300px;
    max-width: 400px;
    word-wrap: break-word;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-error {
    background-color: #ff4444;
    color: #fff;
}

.notification-success {
    background-color: #44ff44;
    color: #000;
}

.notification-info {
    background-color: #1C1C1C;
    color: #fff;
}
