
:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #161616;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-strong: rgba(0, 0, 0, 0.5);
    --bg-tertiary: #1a1a1a;
    --bg-light: #e1e1e1;
    
    --accent: #ffffff;
    --accent-hover: #cccccc;

    --text-white: #ffffff;
    --text-light: #dddddd;
    --text-muted: #aaa;
    --text-dim: #888;
    --text-dark: #000;
    --text-soft: #f5f5f5;
    --text-inverse: #1e1e1e;
    --text-placeholder: #969696;

    --border-light: rgba(255, 255, 255, 0.1);
    --border-mid: #555;
    --border-dark: #333;
    
    --input-bg: rgba(0,0,0,0.3);
    --input-bg-focus: rgba(0,0,0,0.5);

    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 30px;

    --transition: 0.3s ease-in-out;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-main);
    color: var(--text-white);
    list-style-type: none;
}

.navbar-collapse { 
    background-color: transparent !important;
    border: none !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-placeholder) !important;
}

textarea {
    resize: none;
}

.border-danger {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4) !important;
}

.border-success {
    border: 2px solid #198754 !important;
    box-shadow: 0 0 8px rgba(25, 135, 84, 0.4) !important;
}


::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }


input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important; 
    -webkit-text-fill-color: white !important; 
    transition: background-color 5000s ease-in-out 0s;
}


::selection {
    background: var(--text-white);
    color: var(--text-dark);
}

::-moz-selection {
    background: var(--text-white);
    color: var(--text-dark);
}


body {
    background: linear-gradient(135deg, var(--bg-main), var(--bg-main));
    color: var(--text-var);
}

h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #f5f5f5;
}


#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: -1;
    pointer-events: none;
}


#pageLoader {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(135deg, var(--bg-main), var(--bg-main));
}


#errorHolder {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    width: 350px;
    z-index: 9999 !important;
}


.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
}


.btn-primary, .btn-secondary {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin: 10px 0px;
}

.btn-primary i,
.btn-secondary i {
    color: #000 !important;
}

.btn-error {
    background-color: #ff4d4d !important;
}

.btn-success {
    background-color: #198754 !important;
}

.btn-info {
    background-color: #0d6efd !important;
}

.btn-warn {
    background-color: rgb(226, 205, 82) !important;
}

.btn-secondary {
    margin: 0px 10px !important;
    background: #000 !important;
    border: 1px solid var(--text-var) !important;
    color: var(--text-var) !important;
}

.btn-form {
    width: 100%;
    padding: 12px;
    border: none;
    margin-top: 10px;
    border-radius: var(--radius-md);
    color: var(--text-var);
    border: 2px solid #1e1e1e;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
}

.btn-outline-secondary {
    border: 1px solid #333 !important;
    color: #888 !important;
    background: transparent !important;
    transition: var(--transition);
}


.form-control, .form-select {
    background-color: var(--input-bg) !important;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-muted) !important;
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg-focus) !important;
    box-shadow: none;
    color: var(--text-white) !important;
}

.form-select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px;
    border: none;
    outline: none;
}

.form-container {
    border: 1px solid #333;
    padding: 30px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.form-span {
    cursor: pointer;
    color: #FFF;
}

.form-check-input:checked {
    background-color: #000;
    border: none;
}

.form-check-input:focus {
    border-color: #555;
    box-shadow: none;
    outline: none;
}

.trash-icon {
    font-size: 1.2rem;
    border: none !important;
}

.trash-icon:hover {
    color: #ff4d4d;
}


.btn-hover, .link-hover {
    display: inline-block;
    transition: var(--transition);
}

.btn-hover-rotate:hover {
    transform: rotateZ(1deg) !important;
}

.btn-hover-scale:hover {
    transform: scale(1.02) !important;
}

.link-hover-color:hover {
    color: #fff !important;
}

.link-hover-colormove:hover {
    color: #fff !important;
    margin-left: 5px;
}

.link-hover-social:hover {
    background: #fff;
    color: #000 !important;
    border-color: #fff;
    transform: translateY(-3px) scale(1.02) rotateZ(3deg);
}

.link-hover-social span {
    transition: var(--transition);
}

.link-hover-social:hover span {
    color: #000 !important;
}

.author-img:hover {
    filter: grayscale(0%);
    border-color: #fff;
    transform: scale(1.02);
}

.avatar-circle {
    width: 45px;
    height: 45px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.avatar-red {
    background-color: #dc3545 !important; 
}

.avatar-blue {
    background-color: #0d6efd !important; 
}

#activationContainer {
    bottom: 20px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 90vw);
    z-index: 9998;
}


.navbar {
    top: 20px;
    z-index: 9; 
    position: fixed;
    border-radius: 20px;
    min-height: 60px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%); 
    transition: var(--transition);
    background-color: rgba(10, 10, 10, 0.8); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5 20px;
    align-items: flex-start !important;
}

.nav-alt {
    background-color: var(--bg-secondary) !important;
    top: 10px;
    width: 95%;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 15px !important;
}

.nav-link.navbar-brand {
    background-color: #e1e1e1 !important;
    color: #1e1e1e !important;
    border-radius: var(--radius-sm);
    padding: 2px 16px !important;
    margin: 0 !important;
    margin-right: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.nav-link.navbar-brand:hover,
.nav-link.navbar-brand.active {
    background-color: #fff !important;
    color: #000 !important;
}

.navbar-toggler {
    border: none;
    padding: 0 !important;
    padding-top: 5px !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    filter: invert(1); 
}


.footer-section {
    background: var(--bg-main);
    padding: 80px 0 30px;
    border-top: 1px solid #1a1a1a;
    color: var(--text-var);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #888 !important;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-info p {
    max-width: 300px;
    margin: 15px auto 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: #fff;
    border: 1px solid #333;
    transition: var(--transition);
}

.footer-divider {
    margin: 50px 0 30px;
    background-color: #333;
    opacity: 0.5;
}

.copyright-text {
    font-size: 0.9rem;
    color: #555;
}


#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: var(--text-var);
    border-bottom-right-radius: 150px;
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#headerSubtext {
    width: 700px;
    margin: 0px auto 50px;
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #333;
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    border-color: #fff;
}

#features .feature-card:hover {
    border-color: #fff;
    transform: translateY(-5px) !important;
}

.feature-card i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.glass-box {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 40px;
    border-radius: var(--radius-md);
    text-align: center;
}


#authentificationForms {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}


#author {
    padding-top: 50px;
    padding-bottom: 50px;
}

.author-img-container {
    position: relative;
    display: inline-block;
}

.author-img {
    border-bottom-right-radius: 100px;
    border-top-left-radius: 30px;
    transition: var(--transition);
    filter: grayscale(30%);
}

.author-content h1 {
    letter-spacing: -1px;
}

.author-content p {
    line-height: 1.8;
}

.author-socials .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 30px;
    font-size: 1rem;
    line-height: 1; 
}


#feedContainer {
    padding: 100px 0px !important;
}

.filter-bar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg)
}

#btnNewPost span {
    color: #000;
}

.post-image-wrap {
    width: 100%;
}

.post-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #1a1a1a;
    line-height: 0;
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.post-image-container img:hover {
    transform: scale(1.02);
}

.post-image-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    opacity: 0.5;
    line-height: 1;
}

.admin-variant {
    border-left: 5px solid #dc3545 !important; 
    background: linear-gradient(145deg, #1a1a1a, #0e0d0d) !important; 
}

.admin-variant h6 {
    color: #ff4d4d !important; 
}

.text-primary.small {
    font-style: italic;
    opacity: 0.8;
}

#postsWrapper .feature-card:hover {
    border-color: #333 !important;
    transform: none !important;
}

.attachment {
    background-color: var(--bg-glass-strong);
    color: var(--text-white) !important;
}

.modal-content {
    background-color: var(--bg-secondary); 
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal .modal-content:hover {
    transform: none !important;
}

.modal .modal-content.feature-card:hover {
    border-color: #333 !important;
}

.modal .modal-content:not(.feature-card):hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.modal .btn-hover-rotate:hover,
.modal .btn-hover-scale:hover {
    transform: none !important;
}

.modal-header, .modal-footer {
    border: none !important;
}


.admin-container {
    margin-top: 130px;
    margin-bottom: 100px;
    min-height: 500px;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.admin-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    height: 100%;
}

.admin-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.125rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.admin-panel-header .admin-panel-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.admin-panel-header-spacer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    visibility: hidden;
    pointer-events: none;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.admin-panel-header-spacer::before {
    content: 'Guests';
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.admin-panel-header-spacer::after {
    content: '';
    width: 34px;
    height: 18px;
}

.guest-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, background 0.2s;
}

.guest-filter:hover {
    border-color: var(--border-mid);
    background: rgba(255, 255, 255, 0.06);
}

.guest-filter-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.guest-filter-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.guest-filter-track {
    width: 34px;
    height: 18px;
    background: var(--border-mid);
    border-radius: 18px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.guest-filter-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: var(--text-white);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.guest-filter-input:checked + .guest-filter-track {
    background: var(--accent);
}

.guest-filter-input:checked + .guest-filter-track::after {
    transform: translateX(16px);
}

.guest-filter:has(.guest-filter-input:checked) {
    border-color: rgba(255, 255, 255, 0.25);
}

.guest-filter:has(.guest-filter-input:checked) .guest-filter-text {
    color: var(--text-white);
}

.admin-panel-body {
    min-height: 120px;
}

.recent-log-scroll {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
}

.recent-log-scroll::-webkit-scrollbar {
    width: 5px;
}

.recent-log-scroll::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.admin-table thead th {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem !important;
}

.admin-table tbody td {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.85rem;
    vertical-align: middle;
}

.access-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 4px;
    max-width: 140px;
}

.access-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.admin-tabs {
    border: none !important;
    gap: 0.5rem;
}

.admin-tabs .nav-link {
    background: transparent;
    border: 1px solid var(--border-light) !important;
    color: var(--text-muted) !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem;
    border-radius: var(--radius-sm) !important;
}

.admin-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.admin-table-card {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.admin-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    padding: 0 0.75rem !important;
    margin: 0 !important;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: none;
    white-space: nowrap;
}

.admin-action-btn.admin-action-btn-icon {
    width: 2rem;
    min-width: 2rem;
    padding: 0 !important;
}

.admin-action-btn.btn-primary {
    background: #fff !important;
    color: #000 !important;
}

.admin-action-btn.btn-success {
    background: #198754 !important;
    color: #fff !important;
}

.admin-action-btn.btn-info i,
.admin-action-btn.btn-danger i,
.admin-action-btn.btn-error i {
    color: #fff !important;
    font-size: 0.8rem;
}

.table {
    background-color: transparent !important;
    color: #e0e0e0 !important;
}

.table thead th {
    background-color: transparent !important;
    color: #808080 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #808080;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 15px;
}

.table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: transparent !important;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

#adminTabs {
    border: none !important;
    display: flex;
    gap: 20px;
}

#adminTabs .nav-link.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.admin-container .badge {
    color: #fff !important;
}

.admin-container .table {
    --bs-table-color: #e0e0e0;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    color: #e0e0e0 !important;
}

.admin-container .table > :not(caption) > * > * {
    color: #e0e0e0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.admin-container .table thead th {
    color: #888 !important;
}

.admin-container .table .text-white,
.admin-container .table .fw-bold {
    color: #fff !important;
}

.admin-container .table .text-secondary,
.admin-container .text-secondary {
    color: #aaa !important;
}

.admin-container .table .text-light {
    color: #ddd !important;
}

.admin-container .table .badge {
    color: #fff !important;
}

.admin-container .table .badge.text-secondary {
    color: #ccc !important;
}

.admin-container .table-dark-transparent td {
    color: #aaa !important;
}

.admin-container .table-dark-transparent strong {
    color: #ddd !important;
}

#adminTabs .nav-item .nav-link {
    border-radius: var(--radius-md) !important;
}

.bg-unread {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.dimmed {
    opacity: 0.5;
    font-weight: normal;
}

.transition-all {
    transition: all 0.4s ease;
}

#msgModalBody {
    color: #e0e0e0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
    white-space: normal;
    line-height: 1.6;
}

.table-dark-transparent {
    background-color: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
}

.table-dark-transparent td {
    border-top: none !important;
}

.btn-group .btn {
    margin-left: 5px;
}


@media (max-width: 768px) {
    #feedContainer {
        margin-top: 2rem !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #errorHolder {
        bottom: 20px !important;
        padding: 0px 20px !important;
        width: 100% !important;
    }

    .filter-bar, .feature-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-radius: 15px !important;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .filter-bar .w-auto {
        width: 100% !important;
    }

    .features {
        flex-direction: column;
        margin-bottom: 5px !important;
    }

    #hero {
        padding: 150px 20px;
        border-bottom-right-radius: 50px;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }

    #headerSubtext {
        width: 100%;
        font-size: 1rem;
    }
    
    #dashboardButton {
        margin-top: 20px !important;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .footer-section {
        padding: 60px 0 20px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .author-img {
        padding-top: 50px !important;
    }
}

@media (max-width: 991px) {

    .nav-item {
        justify-content: center;
    }

    .navbar {
        height: auto;
        padding: 10px 20px;
    }

    .navbar-brand {
        margin-right: 0px !important;
    }

    .navbar-collapse {
        background: var(--bg-secondary);
        margin-top: 15px;
        border-radius: var(--radius-lg);
        padding: 20px;
        border: 1px solid #333;
    }

    #navigationLeft {
        gap: 10px;
    }

    #navigationRight {
        gap: 10px;
    }

    #navigationLeft .nav-item:first-child .nav-link {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    .admin-table-card thead {
        display: none;
    }

    .admin-table-card table, 
    .admin-table-card tbody, 
    .admin-table-card tr, 
    .admin-table-card td {
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 100% !important;
        padding: 10px !important;
    }

    #tabPolls td {
        flex-direction: row;
        text-align: center !important;
    }

    .admin-table-card tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #333 !important;
        padding-bottom: 10px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .admin-table-card td {
        text-align: left !important;
        position: relative;
        border: none !important;
    }

    .admin-table-card td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        color: #6c757d;
        text-transform: uppercase;
        font-size: 0.7rem;
    }
}


.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin: 0;
    display: inline;
}

.stat-info {
    min-width: 0;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}


.load-more-btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.load-more-btn:disabled {
    opacity: 0.7;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not([disabled]):not(.disabled-dots) {
    background: var(--accent);
    color: var(--text-dark);
}

.page-btn.active {
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 700;
}

.page-btn[disabled], .page-btn.disabled-dots {
    opacity: 0.4;
    cursor: default;
}



.post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.post-action-btn i {
    font-size: 0.9rem;
    margin: 0 !important;
    display: inline !important;
}

.post-action-btn:hover {
    color: var(--text-white);
}

.post-action-btn.is-liked,
.post-action-btn.is-liked i {
    color: #e1306c !important;
}

.comments-panel {
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}

.comments-scroll-wrap {
    max-height: 220px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.post-card .comments-section {
    display: block;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
}

.post-card .comments-section::-webkit-scrollbar {
    width: 4px;
}

.post-card .comments-section::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.comment-item {
    padding: 0.2rem 0;
    line-height: 1.35;
}

.comment-item + .comment-item {
    margin-top: 0.35rem;
}

.comment-body {
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
}

.comment-author {
    color: var(--text-white);
    font-weight: 600;
    margin-right: 0.35rem;
}

.comment-text {
    color: var(--text-light);
    font-weight: 400;
}

.btn-delete-comment {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.1rem 0.3rem;
    margin-left: 0.35rem;
    font-size: 0.85rem;
    line-height: 1;
    min-width: 1.25rem;
    min-height: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    vertical-align: middle;
    transition: opacity 0.15s, color 0.15s;
}

.comment-item:hover .btn-delete-comment {
    opacity: 0.85;
}

.btn-delete-comment:hover {
    opacity: 1 !important;
    color: #ff4d4d;
}

.comment-form .input-group {
    padding-top: 0.35rem;
}

.comment-form .comment-input {
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    color: var(--text-white);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

.comment-form .comment-input:focus {
    background: var(--input-bg-focus);
    border-color: var(--text-muted);
    box-shadow: none;
    color: var(--text-white);
}

.btn-comment-submit {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem !important;
    margin: 0 !important;
    white-space: nowrap;
}