@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;700&display=swap');

:root {
    --primary: #64ffda;
    --background: #0a192f;
    --text: #8892b0;
    --border: #233554;
    --scrollbar-bg: #0a192f;
    --scrollbar-thumb: #64ffda;
    --scrollbar-thumb-hover: #45b39d;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 6px;
    border: 3px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

body {
    background-color: var(--background);
    color: var(--text);
}

.container {
    width: 100%;
    padding: 20px;
    position: relative;
}

.heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}


.underline {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.underline::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background-color: var(--border);
    margin-left: 10px;
}

.inner {
    display: flex;
    height: calc(100% - 100px);
}


.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.userinfo {
    display: flex;
    align-items: left;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
}

.userinfo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.welcome-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.license-status {
    font-size: 16px;
}

.distinguished {
    color: var(--primary)
}

.logout-btn {
    background-color: var(--border);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    align-self: center;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.keyboard-btn {
    background-color: var(--border);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    align-self: center;
    margin-left: 120px;
    transition: background-color 0.3s;
}


.keyboard-btn:hover, .logout-btn:hover {
    background-color: var(--background);
}

.content {
    width: 100%;
    margin-top: 10px;
}

.add-profile-btn, .profile-btn {
    height: 40px;
    font-size: 14px;
    border: 1px solid var(--primary);
    background-color: var(--background);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
}

.add-profile-btn:hover {
    background-color: var(--primary);
}

.profile-btn:hover {
    background-color: var(--primary);
}

.profile-btn.active {
    background-color: var(--primary);
    color: white;
}

#profiles-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
}

#profiles-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}


.settings.hidden {
    display: none;
}

/* POPUP CSS */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: var(--background);
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-content input {
    padding: 10px;
    font-size: 16px;
}

.popup-content .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* SETTINGS */
#settings-form {
    margin: 0 auto;
    padding: 20px;
}

.inner {
    margin-top: 10px;
    display: flex;
    height: 400px;
    width: 100%;
}

.tablist {
    display: flex;
    flex-direction: column;
    width: 200px;
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(35, 53, 84, 0.3);
}

.tablist button {
    background: none;
    color: var(--text);
    border: none;
    padding: 15px;
    font-size: 13px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 1px solid transparent;
}

.tablist button:hover {
    background-color: rgba(35, 53, 84, 0.5);
}

.tablist button.active {
    border-left: 1px solid var(--primary);
    color: var(--primary);
}

.panels {
    flex-grow: 1;
    margin-left: 10px;
    border-radius: 8px;
    padding: 20px;
    background-color: rgba(35, 53, 84, 0.5);
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.input-item {
    text-align: center;
}

#cwlbot-nonsellable, #cwlbot-sellable {
    height: 40px !important;
}

.input-text {
    width: 40px;
    padding: 4px;
    border: 0px;
    border-bottom: 1px solid var(--primary);
    background-color: transparent;
    color: var(--text);
}

textarea {
    width: 100%;
    height: 80px;
    border: 0px;
    resize: none;
    border: 0;
    border-bottom: 1px solid var(--primary);
    background-color: rgba(35, 53, 84, 0.1);
    color: var(--text);
}

select {
    width: 100%;
    height: 40px;
    border: 0px;
    border-bottom: 1px solid var(--primary);
    background-color: rgba(35, 53, 84, 0.1);
    color: var(--text);
    margin-top: 40px;
}


/* Custom switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 19px;
    margin-top: 5px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 11px;
    width: 11px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}