html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* ===== Header ===== */
.layui-layout-admin .eg-talk-header {
    background: linear-gradient(135deg, #132844 0%, #1B3A68 100%) !important;
    box-shadow: 0 2px 16px rgba(11, 37, 78, 0.45);
    z-index: 1001;
}

.eg-talk-logo {
    display: flex !important;
    align-items: center;
    padding: 0 12px;
}

.eg-talk-hamburger {
    transition: color 0.2s, transform 0.2s;
}

.eg-talk-hamburger:hover {
    color: #60A5FA !important;
    transform: scale(1.15);
}

.eg-talk-brand-text {
    color: #E2E8F0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-left: 10px;
}

.eg-talk-header-right {
    display: flex;
    align-items: center;
}

.eg-talk-user-info {
    display: flex !important;
    align-items: center;
    padding: 0 8px;
}

.eg-talk-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    border: 2px solid rgba(96, 165, 250, 0.5);
    object-fit: cover;
}

.eg-talk-username {
    color: #CBD5E1;
    font-size: 14px;
    margin-left: 8px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eg-talk-logout-btn {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.2s;
}

.eg-talk-logout-btn:hover {
    color: #F87171 !important;
}

/* ===== Sidebar ===== */
.eg-talk-sidebar {
    background: linear-gradient(180deg, #122240 0%, #162B50 100%) !important;
    border-right: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 2px 0 16px rgba(11, 37, 78, 0.3);
}

.eg-talk-sidebar .layui-side-scroll {
    background: transparent;
}

.eg-talk-sidebar-brand {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.eg-talk-sidebar-brand span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-left: 8px;
}

.menuUrl {
    background: transparent !important;
    padding: 0 8px;
}

/* ===== Menu Items ===== */
.eg-talk-menu-item {
    margin: 2px 0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.eg-talk-menu-item a {
    display: flex !important;
    align-items: center;
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.eg-talk-menu-item a:hover {
    color: #E2E8F0 !important;
    background-color: rgba(59, 130, 246, 0.15);
}

.eg-talk-menu-item:hover {
    border-left-color: rgba(59, 130, 246, 0.5);
}

.eg-talk-menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.eg-talk-menu-text {
    margin-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active & Clicked menu states */
.layui-nav-tree .layui-nav-child dd.layui-this,
.layui-nav-tree .layui-nav-child dd.layui-this a,
.layui-nav-tree .layui-this,
.layui-nav-tree .layui-this > a,
.layui-nav-tree .layui-this > a:hover {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #60A5FA !important;
}

.navigation-menu-clicked {
    background: rgba(59, 130, 246, 0.2);
    border-left-color: #3B82F6 !important;
    border-radius: 8px;
}

.navigation-menu-clicked a {
    color: #60A5FA !important;
}

.navigation-menu-clicked .eg-talk-menu-icon {
    color: #3B82F6 !important;
}

/* ===== Footer ===== */
.eg-talk-footer {
    background: #132844 !important;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

/* ===== Content Title ===== */
.layui-form-checked[lay-skin=primary] > i {
    border-color: #3B82F6 !important;
    background-color: #3B82F6 !important;
}

.layui-form-checkbox[lay-skin=primary] > .layui-icon-indeterminate {
    border-color: #3B82F6 !important;
}

.layui-form-checkbox[lay-skin=primary]:hover > i {
    border-color: #3B82F6 !important;
}

.layui-table-checked {
    background-color: #DBEAFE !important;
}

    .layui-table-checked.layui-table-click, .layui-table-checked.layui-table-hover {
        background-color: #DBEAFE !important;
    }

.layui-laypage a:hover {
    color: #3B82F6 !important;
}

.layui-laypage input:focus, .layui-laypage select:focus {
    border-color: #3B82F6 !important
}

.center-horizontally-vertically {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.content-title {
    background-color: #FFFFFF;
    height: 8%;
    padding: 10px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3B82F6 !important;
}

.eg-talk-btn-primary {
    color: #fff;
    background-color: #3B82F6;
}

    .eg-talk-btn-primary:hover {
        color: #fff;
        background-color: #2563EB;
    }

.set-ul-nav {
    background-color: #FFFFFF !important;
    height:60px !important;
}

    .set-ul-nav .layui-nav-item, a {
        color: #BFBFBF !important;
    }

    .set-ul-nav .layui-this:after, .layui-nav-bar {
        background-color: #3B82F6 !important;
    }

.set-ul-clicked {
    color: #3B82F6 !important;
}

.set-button-div {
    padding: 5px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.set-select-div {
    border-width: 1px;
    border-style: solid;
    border-color: #EEEEEE;
    padding: 5px;
    margin-bottom: 5px;
    margin-left: 0px;
    margin-right: 0px;
}

.set-table-div {
    margin-top: 5px;
}

.selfPhoto-btn-primary {
    color: #fff;
    background-color: #162B50;
}
    .selfPhoto-btn-primary:focus, .selfPhoto-btn-primary:active:focus {
        box-shadow: none !important;
    }
.layui-table-cell:has(.sended-blue) {
    background-color: rgba(0,0,255,0.3);
}

.layui-table-cell:has(.replied-green) {
    background-color: rgba(0,255,0,0.3);
}

.layui-table-cell:has(.video-red) {
    background-color: rgba(255,0,0,0.3);
}