body {
    background: url('../../assets/img/background.jpg') no-repeat fixed;
    background-size: 100% 100%;
    font-family: sans-serif;
    font-size: 14px;
    color: #fff;
}

.left {
    background: var(--bar-bg);
    backdrop-filter: var(--bar-blur);
    position: fixed;
    top: 1px;
    bottom: 1px;
    width: 250px;
    border-right-width: 1px;
    border-color: var(--border-main-color);
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    border-bottom-width: 1px;
    border-color: var(--border-main-color);
    display: flex;
    padding: 5px;
    justify-content: center;
}

.logo img {
    width: 140px;
}

.right {
    padding-left: 250px;
}

a {
    color: var(--xxl-color);
}

/** MainNav **/

nav {
    height: 100%;
}

nav ul {
    width: 100%;
}

nav ul li {
    border-radius: 5px;
    margin-bottom: 3px;
    transition-duration: 0.5s;
}

nav ul li:hover {
    background: var(--hover-color);
}

nav ul li a {
    padding: 10px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 15px;
    width: 100%;
    gap: 10px;
}

.activeLink {
    background: var(--hover-color);
}

/** UserInfo **/

.userInfo {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-color: var(--border-main-color);
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.userInfo ul li {
    margin-bottom: 3px;
    transition-duration: 0.5s;
    border-radius: 5px;
    display: flex;
    gap: 10px;
}

.userInfo ul li:hover {
    background: var(--hover-color);
}

.userInfo ul li div.profileLink {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
}

.userInfo ul li div.profileLink > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #fff;
}

.userInfo ul li div.profileLink > a div {
    display: flex;
    flex-direction: column;
}

.userInfo ul li div.profileLink span:last-child {
    font-size: 11px;
    opacity: 0.6;
}

/** Header **/

header {
    background: var(--bar-bg);
    backdrop-filter: var(--bar-blur);
    border-bottom-width: 1px;
    border-color: var(--border-main-color);
    padding-left: 20px;
    padding-right: 20px;
    height: 55px;
    display: flex;
    align-items: center;
}

header > div:nth-child(1) {
    display: flex;
    flex: 1;
}

header > div:nth-last-child {
    display: flex;
    flex-direction: flex-end;
}

/** Content **/

.main {
    padding: 20px 50px;
    height: calc(100vh - 57px);
}

/** Breadcrumb **/

.breadcrumb {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    gap: 5px;
}

.breadcrumb-item {
    display: inline-flex;
    border-radius: 5px;
}

.breadcrumb-item:hover {
    background: var(--hover-color);
}

.breadcrumb-item a {
    padding: 3px;
    color: #fff;
}

.breadcrumb .active {
    color: var(--xxl-color);
    padding: 3px;
}

.breadcrumb .active:hover {
    background: transparent;
}

/** SocialNav **/

.socialNav {
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 18px;
}

/** BtnMini **/

.btnMini {
    background: var(--xxl-color);
    border-radius: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btnMini:hover {
    background: var(--hover-color2);
}

.btnMini > a {
    font-size: 18px;
    display: block;
    color: #fff;
}

/** Alert **/

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid transparent;
    position: relative;
    font-family: Arial, sans-serif;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success { background: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.alert-danger { background: #f8d7da; color: #842029; border-color: #f5c2c7; }
.alert-warning { background: #fff3cd; color: #664d03; border-color: #ffecb5; }
.alert-info { background: #cff4fc; color: #055160; border-color: #b6effb; }

.alert-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.alert .btn-close {
    position: absolute;
    top: 8px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

.alert.fade.show { opacity: 1; transition: opacity 0.3s ease-out; }
.alert.fade.hide { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; transition: all 0.3s ease; }

/** Cards **/

.card {
    padding: 10px;
    border-width: 1px;
    border-color: var(--hover-color);
    background: #27272a;
    border-radius: 10px;
}

/** Chat **/

.chat-users {
    min-width: 250px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-content {
    width: 100%;
    overflow-y: scroll;
}

.chat-loading {
    text-align: center;
    color: #aaa;
    padding: 10px;
    font-style: italic;
}

.chat-content .chat-tab-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    overflow-x: scroll;
}

.chat-users .user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease;
    width: 100%;
}

.chat-users .user:hover {
    background: #31313a;
}

.chat-users .user img {
    object-fit: cover;
    border-width: 1px;
    border-color: var(--hover-color);
}

.chat-users .chat-user-tab {
    border-radius: 10px;
}

.chat-users .chat-user-tab.active {
    background: #31313a;
}

.chat-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-message img {
    border-width: 1px;
    border-color: var(--hover-color);
}

.bubble {
    background: #111114;
    padding: 10px;
    border-radius: 12px;
    position: relative;
    min-width: 250px;
    border-width: 1px;
    border-color: var(--hover-color);
    cursor: pointer;
}

.bubble:hover {
    background: var(--bubble-hover);
}

.bubble .name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.bubble p {
    margin-top: 3px;
    margin-bottom: 13px;
    font-size: 14px;
    color: #ddd;
}

.bubble .time {
    font-size: 11px;
    color: #888;
    position: absolute;
    right: 10px;
    bottom: 5px;
}

.bubble .platform {
    font-size: 11px;
    color: #888;
    position: absolute;
    left: 10px;
    bottom: 5px;
}

.delete-message {
    cursor: pointer;
}

.delete-message:hover {
    color: var(--hover-color2);
}


/** Tabs **/

.tab-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 6px;
}

.tab-labels {
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 -1px 0 var(--border-main-color) inset;
    gap: 30px;
}

.tab-label {
    text-align: center;
    color: #fff;
    user-select: none;
    padding: 15px 20px;
    height: 50px;
    box-sizing: border-box;
}

.tab-label:hover {
    border-bottom-width: 1px;
    border-color: var(--hover-color2);
    color: var(--hover-color2);
    cursor: pointer;
}

.tab-label.active {
    border-bottom-width: 1px;
    border-color: var(--xxl-color);
    color: var(--xxl-color);
}

.tab__content {
    display: none;
    padding: 20px;
    opacity: 0;
}

.tab__content.active {
    display: block;
    opacity: 1;
}

.round-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.round-big-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/** Forms **/

.form {
    max-width: 500px;
}

.form input[type="password"],
.form input[type="text"]{
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #222;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.form input::placeholder {
    color: #aaa;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper {
    margin-bottom: 15px;
    width: 100%;
}

.input-wrapper label {
    display: block;
    margin-left: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #fff;
}

.form button {
    width: 100%;
    padding: 12px;
    background: var(--xxl-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.form button:hover {
    background: var(--hover-color2);
}

/** Table **/

.tbl {
    width: 100%;
    border-collapse: separate;
    overflow: hidden; 
}

.tbl thead {
    color: #fff;
}

.tbl thead tr th {
    background: #424949;
    padding: 15px;
    vertical-align: top;
}

.tbl thead tr th:first-child {
    border-top-left-radius: 10px;
}

.tbl thead tr th:last-child {
    border-top-right-radius: 10px;
}

.tbl tbody tr td {
    text-align: center;
    padding: 10px;
}

.tbl tbody tr td img {
    display: block;
    margin: 0 auto;
}

.tbl tr:nth-child(even) {
    background: #303033;
    transition: all 0.3s ease-in;
}

.tbl tr:hover td {
    background: var(--hover-color2);
    color: #000;
    transition: all 0.3s ease-in;
}

.tbl button {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn_trash {
    background: #e74c3c;
    color: #fff;
}

.btn_edit {
  color: #fff;
  background: #1e8449;
}

/** Stat Page **/

.stat-page {
    padding: 10px;
}

ul.stats {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.stats li {
    flex: 0 0 40%;
    padding: 7px;
}