/* GLOBAL */

body {
    background: linear-gradient(180deg, #020C47, #000521);
    color: #e6ecff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

/* LAYOUT */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.dropdown-menu {
    background-color: #020b42;
    color: #e6ecff;
    border: 1px solid #2078CF;
    width: 100%;
    padding: 5px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    border-radius: 10px;
    background-color: #002c72;
    color: #ffffff;

}

.dropdown-item {
    color: #e6ecff;
}

/* SIDEBAR */

.sidebar {
    width: 240px;
    background: #020C47;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 18px;
}

.logo h4 {
    color: #2078CF;
    font-weight: 600;
    margin: 0;
}

.logo span {
    font-size: 12px;
    color: #9fb6ff;
}

/* MENU */

.menu {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.menu li {
    margin-bottom: 8px;
}

.menu a {
    color: #9fb6ff;
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.menu a:hover {
    background: #011F65;
    color: #fff;
}

/* ACTIVE MENU */

.menu a.active {
    background: linear-gradient(90deg, #2078CF, #0E4EB2);
    color: #fff;
}

/* MAIN CONTENT */

.main-content {
    flex: 1;
    padding: 30px;
}

/* TOP BAR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.topbar h4 {
    font-weight: 600;
}

/* DASHBOARD CARDS */

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: 0.2s;
}

.dashboard-card:hover {
    border: 1px solid #2078CF;
    transform: translateY(-3px);
}

.dashboard-card h5 {
    font-size: 14px;
    color: #9fb6ff;
}

.dashboard-card h2 {
    margin-top: 10px;
    font-size: 28px;
    color: #2078CF;
}

/* LOGIN PAGE */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(circle at top, #011F65, #000521);
}

.login-card {
    width: 380px;
    padding: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.login-card h3 {
    text-align: center;
    margin-bottom: 25px;
}

.login-card input {
    background: #020C47;
    border: 1px solid #011F65;
    color: #fff;
}

.login-card input:focus {
    border-color: #2078CF;
    box-shadow: none;
}

/* BUTTON */

.btn-tech {
    background: linear-gradient(90deg, #2078CF, #0E4EB2);
    border: none;
    color: #fff;
    font-weight: 500;
}

.btn-tech:hover {
    opacity: 0.9;
}

/* ===== ADMIN LAYOUT ===== */

.admin-wrapper {
    display: flex;
    height: 100vh;
}

/* ===== SIDEBAR ===== */

.sidebar {
    width: 250px;
    background: #020C47;
    border-right: 1px solid #011F65;
}

.adm-sidebar {
    height: 100%;
}

/* Logo */

.adm-logo {
    width: 50px;
}

.login-heading {
    font-weight: 600;
    letter-spacing: 1px;
}

.adm-accent {
    color: #2078CF;
}

/* ===== SIDEBAR MENU ===== */

.adm-nav .adm-link {
    color: #9fb6ff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.adm-nav .adm-link:hover {
    background: #011F65;
    color: #fff;
}

.adm-nav .adm-link.active {
    background: #002c72;
    color: white;
}

/* ===== HEADER ===== */

.adm-header {
    height: 70px;
    background: #020C47;
    border-bottom: 1px solid #011F65;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== STATUS DOT ===== */

.adm-status {
    position: relative;
    width: 12px;
    height: 12px;
}

.adm-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: block;
}

.adm-pulse {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(2);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ===== PROFILE ===== */

.adm-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: none;
    color: #fff;
    border: 1px solid #2078CF;
    border-radius: 25px;
}

.adm-profile:hover {
    border: 1px solid #59aafa;
    border-radius: 25px;
}

/* Avatar */

.adm-avatar {
    width: 36px;
    height: 36px;
    background: #2078CF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===== DROPDOWN ===== */

.adm-dropdown {
    background: #000521;
    border: 1px solid #011F65;
}

.adm-dropdown-header {
    color: #9fb6ff;
    font-size: 13px;
}

.adm-item {
    color: #cbd5f5;
}

.adm-item:hover {
    background: #011F65;
}

/* ===== CONTENT AREA ===== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

/* ===== FOOTER ===== */

.footer {
    background: #000521;
    border-top: 1px solid #011F65;
    text-align: center;
    color: #9fb6ff;
}

/* ===== users area ===== */
/* Dark Table Styling */
.table-dark-custom {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6ecff;
    border-radius: 12px;
    overflow: hidden;
}

.table-dark-custom th,
.table-dark-custom td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-dark-custom th {
    background: rgba(0, 36, 114, 0.8);
    color: #fff;
    font-weight: 600;

}

.table-dark-custom tr:hover {
    background: rgba(32, 120, 207, 0.2);
}

.table-dark-custom img {
    object-fit: cover;
    border-radius: 50%;
}

/* question area */

/* Dark Table Styling for Device Questions */
.table-dark-custom {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6ecff;
    border-radius: 12px;
    overflow: hidden;
}

.table-dark-custom th,
.table-dark-custom td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-dark-custom th {
    background: rgba(0, 36, 114, 0.8);
    color: #fff;
    font-weight: 600;
}

.table-dark-custom tr:hover {
    background: rgba(32, 120, 207, 0.2);
}

/* Action Buttons */
.table-dark-custom .btn-warning {
    background: #ffb74d;
    border: none;
    color: #020C47;
}

.table-dark-custom .btn-warning:hover {
    opacity: 0.9;
}

.table-dark-custom .btn-danger {
    background: #e53935;
    border: none;
    color: #fff;
}

.table-dark-custom .btn-danger:hover {
    opacity: 0.9;
}

.table-dark-custom .btn-primary {
    background: #2078CF;
    border: none;
    color: #fff;
}

.table-dark-custom .btn-primary:hover {
    opacity: 0.9;
}

.comment-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.comment-user {
    font-weight: 600;
    color: #fff;
}

.comment-text {
    color: #ddd;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

.post-main-img {
    width: 100%;
    border-radius: 12px;
    max-height: 300px;
    object-fit: cover;
}

.post-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin: 4px;
}

.media-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-card {
    background: rgba(10, 16, 40, 0.78);
    border: 1px solid #2c2c3c;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-dark-custom {
    width: 100%;
    border-collapse: collapse;
    background-color: #e9ecef05;
    color: #ffffff;
    overflow: hidden;
    border-radius: 14px;
}

.table-dark-custom th,
.table-dark-custom td {
    padding: 12px 15px;
    border: 1px solid #2c2c3c;
    text-align: left;
    vertical-align: middle;
}

.table-dark-custom th {
    background-color: rgba(0, 36, 114, 0.8);
}

.table-dark-custom tr:hover {
    background-color: #004bbb67;
    color: white;
    border-color: #5f9fff;
}

.badge-custom {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.report-thumb {
    width: 70px;
    height: 70px;
    /* object-fit: cover; */
    border: 1px solid #2c2c3c;
}

.no-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #2c2c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #6c757d;
}

.action-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.truncate-cell {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}