:root {
    /* Modern Gradient Colors - Liquid Glass Style - Deep Blue Theme */
    --primary-gradient: linear-gradient(135deg, #0b1e6d 0%, #1e3a8a 100%);
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --warning-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --info-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --danger-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);

    /* Accent Colors */
    --accent-primary-blue: #0b1e6d;
    --accent-pink: #f093fb;
    --accent-blue: #4facfe;
    --accent-green: #43e97b;
    --accent-orange: #0b1e6d;

    /* Neutral Colors */
    --dark-color: #1a1d29;
    --light-color: #f5f7fa;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f8f9fd;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);

    /* Dimensions */
    --sidebar-width: 260px;
    --header-height: 70px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ===== Sidebar Styles - Light & Modern ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(11, 30, 109, 0.05) 0%, rgba(30, 58, 138, 0.05) 100%);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.logo-img {
    max-width: 180px;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    padding: 0.5rem;
    background: rgba(255, 107, 53, 0.05);
}

.sidebar.collapsed .logo-img {
    max-width: 50px;
}

/* User Info */
.user-info {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(11, 30, 109, 0.03) 0%, rgba(30, 58, 138, 0.03) 100%);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: var(--primary-gradient);
    padding: 2px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-gradient);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.sidebar.collapsed .user-details {
    display: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.2);
    border-radius: 3px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0.25rem 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--accent-orange);
    transform: translateX(4px);
}

.nav-item.active .nav-link {
    background: linear-gradient(135deg, rgba(11, 30, 109, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    color: var(--accent-orange);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-link i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    padding: 0.75rem;
}

.sidebar-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed~.main-content {
    margin-left: 80px;
}

/* Top Header - Glassmorphism */
.top-header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.sidebar-toggle:hover {
    background: rgba(11, 30, 109, 0.1);
    color: var(--accent-orange);
}

.page-title {
    color: var(--dark-color);
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.notification-btn {
    position: relative;
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.notification-btn:hover {
    background: rgba(11, 30, 109, 0.1);
    color: var(--accent-orange);
}

.notification-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
    background: var(--primary-gradient);
    border: 2px solid white;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--primary-gradient);
    padding: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar-small:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Page Content */
.page-content {
    padding: 2rem;
}

/* ===== Stats Cards - Liquid Glass Style ===== */
.stats-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card-primary::before {
    background: var(--primary-gradient);
}

.stats-card-success::before {
    background: var(--success-gradient);
}

.stats-card-warning::before {
    background: var(--warning-gradient);
}

.stats-card-info::before {
    background: var(--info-gradient);
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.stats-card-primary .stats-icon {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(11, 30, 109, 0.3);
}

.stats-card-success .stats-icon {
    background: var(--success-gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.stats-card-warning .stats-icon {
    background: var(--warning-gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
}

.stats-card-info .stats-icon {
    background: var(--info-gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stats-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 600;
}

.stats-trend i {
    font-size: 0.875rem;
}

.stats-trend .fa-arrow-down {
    color: var(--accent-orange);
}

/* ===== Chart Cards - Liquid Glass ===== */
.chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}

.chart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(11, 30, 109, 0.03) 0%, rgba(30, 58, 138, 0.03) 100%);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-actions .form-select {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: white;
    transition: all 0.3s ease;
}

.chart-actions .form-select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.chart-body {
    padding: 1.5rem;
}

.chart-body canvas {
    max-height: 300px;
}

/* ===== Activity Card ===== */
.activity-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.activity-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(11, 30, 109, 0.03) 0%, rgba(30, 58, 138, 0.03) 100%);
}

.activity-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.activity-header .btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.activity-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.activity-body {
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(255, 107, 53, 0.03);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.activity-icon.bg-primary {
    background: var(--primary-gradient);
}

.activity-icon.bg-success {
    background: var(--success-gradient);
}

.activity-icon.bg-warning {
    background: var(--warning-gradient);
}

.activity-icon.bg-info {
    background: var(--info-gradient);
}

.activity-icon.bg-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.activity-text strong {
    color: var(--dark-color);
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .stats-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .top-header {
        padding: 0 1rem;
    }

    .page-title {
        font-size: 1.125rem;
    }

    .page-content {
        padding: 1rem;
    }

    .stats-number {
        font-size: 1.75rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.stats-card,
.chart-card,
.activity-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger animation for cards */
.stats-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stats-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Liquid Glass Glow Effect */
.stats-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.stats-card:hover::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

/* Custom Filter Shared Styles */
.custom-filter-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 2px 5px;
    transition: all 0.3s;
}

.custom-filter-item:focus-within {
    border-color: #F09819;
    box-shadow: 0 0 0 2px rgba(255, 138, 8, 0.1);
}

.custom-filter-input {
    border: none;
    background: transparent;
    width: 60px;
    padding: 4px 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    text-align: center;
}

.custom-filter-submit {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-filter-submit:hover {
    transform: scale(1.1);
    color: white;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

@media (max-width: 991px) {
    .page-content {
        padding: 10px !important;
    }

    .stats-card {
        padding: 10px;
        border-radius: 4px;
    }

    .row.g-4.mb-4.row-card-1 {
        gap: 10px;
        margin: 0 !important;
        padding: 0 !important;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 25px !important;
    }

    .row.g-4.mb-4.row-card-1>* {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .stats-card,
    .chart-card,
    .activity-card {
        border-radius: 4px;
    }

    .chart-header {
        padding: 10px;
    }

    h5.chart-title {
        font-size: 14px;
    }

    .chart-body {
        padding: 10px;
    }

    canvas#postsChart {
        width: 100%;
    }

    .activity-header {
        padding: 10px;
    }

    .activity-header h5 {
        font-size: 14px;
    }

    .top-header {
        padding: 0 10px !important;
        height: auto !important;
    }

    .mb-4 {
        margin-bottom: 10px !important;
    }

    .row>* {
        margin-top: 10px;
    }

    .glass-header {
        padding: 10px !important;
        border-radius: 4px !important;
        margin-bottom: 10px !important;
    }

    h3.page-title {
        font-size: 14px !important;
    }

    .search-box input {
        font-size: 14px !important;
        border: 1px solid #ededed !important;
    }

    select.sort-select {
        width: 100%;
        border: 1px solid #ededed !important;
        font-size: 14px !important;
    }

    button.btn.btn-liquid-primary {
        font-size: 14px !important;
        padding: 10px !important;
    }

    .row.g-4.list-card-fanpage {
        margin: 0 -5px !important;
        padding: 0 !important;
    }

    .row.g-4.list-card-fanpage>* {
        margin: 0 !important;
        padding: 0 5px !important;
    }

    .fanpage-card {
        padding: 4px !important;
        border-radius: 4px !important;
    }

    .card-content {
        padding: 45px 5px 5px !important;
        flex-grow: 1 !important;
    }

    span.page-id-text {
        font-size: 11px;
    }

    .card-actions {
        padding: 0 !important;
    }

    .fanpage-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .post-page-list .glass-header {
        margin-bottom: 10px !important;
    }

    .post-page-list .filter-toolbar {
        padding: 10px !important;
        border-radius: 4px !important;
        margin-bottom: 10px !important;
    }

    .status-btn-sm {
        font-size: 11px !important;
    }

    .filter-row-compact {
        gap: 5px !important;
    }

    .compact-group.ms-auto {
        margin-left: unset !important;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }

    .post-card {
        border-radius: 4px !important;
        padding: 0px !important;
    }

    .post-overlay {
        padding: 5px !important;
    }

    /* Fix Mobile Action Buttons Layout */
    .btn-group-action {
        gap: 4px !important;
    }

    .btn-action {
        padding: 6px !important;
        font-size: 13px !important;
        justify-content: center;
        flex: 1;
    }

    .btn-action i {
        margin-right: 0 !important;
        font-size: 14px;
    }

    .btn-text {
        display: none;
    }

    /* Fix Post Badges on Mobile */
    .post-header {
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .shared-badge,
    .post-date-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    .source-icon {
        width: 32px;
        height: 32px;
    }

    .source-icon img {
        width: 100%;
        height: 100%;
    }

    /* Fix Report Page on Mobile */
    .user-chart-container {
        height: 300px !important;
        /* Shorter on mobile */
        margin-top: 20px;
    }

    .chart-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .chart-actions {
        width: 100% !important;
    }

    .chart-actions select {
        flex: 1;
        /* Full width filters on mobile */
        min-width: 120px !important;
    }

    /* User Report Table Mobile Card View */
    .reports-page .table-responsive {
        border: none;
    }

    .reports-page .table thead {
        display: none;
    }

    .reports-page .table tbody tr {
        display: block;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    }

    .reports-page .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    }

    .reports-page .table tbody td:last-child {
        border-bottom: none;
    }

    /* Add labels for each column */
    .reports-page .table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.85rem;
        color: #718096;
        margin-right: 15px;
    }

    /* Special handling for User column (1st) */
    .reports-page .table tbody td:nth-child(1) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 8px;
        padding-bottom: 12px;
    }

    .reports-page .table tbody td:nth-child(1):before {
        display: none;
    }

    .reports-page .table tbody td:nth-child(1) strong {
        font-size: 1.1rem;
        color: var(--dark-color);
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Specific Labels */
    .reports-page .table tbody td:nth-child(2):before {
        content: "Email";
    }

    .reports-page .table tbody td:nth-child(3):before {
        content: "Số Page";
    }

    .reports-page .table tbody td:nth-child(4):before {
        content: "Page ≥30 Like";
    }

    .reports-page .table tbody td:nth-child(5):before {
        content: "Bài ≥30 Like";
    }

    .reports-page .table tbody td:nth-child(6):before {
        content: "Hiệu suất";
    }

    div#pageReportContent {
        margin-top: 15px !important;
    }

    /* Report Details Section - Mobile Optimization */
    #pageReportContent .bg-light.rounded-3 {
        padding: 1.25rem !important;
    }

    #pageReportContent h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    #pageReportContent .d-flex.justify-content-between span {
        font-size: 0.85rem !important;
    }

    #pageReportContent .d-flex.justify-content-between strong {
        font-size: 1rem !important;
    }

    #pageReportContent .d-flex.justify-content-between strong[style*="1.5rem"] {
        font-size: 1.25rem !important;
    }

    .col-lg-8.col-settings {
        padding: 0 !important;
    }

    #pageReportContent p.text-muted {
        font-size: 0.75rem !important;
    }

    /* Settings Page - Mobile Optimization */
    .page-template-template-settings .glass-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 4px !important;
    }

    .page-template-template-settings .page-title {
        margin-bottom: 0 !important;
    }

    .page-template-template-settings h4 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .page-template-template-settings h6 {
        font-size: 0.9rem !important;
    }

    .page-template-template-settings .api-key-item {
        padding: 0 !important;
        margin-bottom: 0.75rem !important;
    }

    .page-template-template-settings .api-key-item .fw-bold {
        font-size: 0.85rem !important;
    }

    .page-template-template-settings .api-key-item .small {
        font-size: 0.75rem !important;
    }

    .page-template-template-settings .status-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    .page-template-template-settings code {
        font-size: 0.7rem !important;
        word-break: break-all !important;
    }

    .page-template-template-settings .input-group-sm .form-control {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.5rem !important;
    }

    .page-template-template-settings .list-group-item {
        font-size: 0.85rem !important;
        padding: 0.75rem 0 !important;
    }

    .page-template-template-settings .btn-sm {
        font-size: 0.8rem !important;
        padding: 0.4rem 1rem !important;
    }

    .page-template-template-settings p.small {
        font-size: 0.75rem !important;
    }

    /* Activity History Page - Mobile Optimization */
    .page-template-template-history .glass-header {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 1rem !important;
    }

    .page-template-template-history .page-title {
        font-size: 1.3rem !important;
        text-align: center !important;
        width: 100%;
    }

    .page-template-template-history #clearHistoryBtn {
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.6rem 1rem !important;
    }

    .page-template-template-history .chart-card {
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
    }

    .page-template-template-history .table {
        min-width: unset !important;
    }

    /* Hide table header on mobile */
    .page-template-template-history .table thead {
        display: none !important;
    }

    /* Convert table rows to cards */
    .page-template-template-history .table tbody tr {
        display: block !important;
        background: rgba(255, 255, 255, 0.6) !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        padding: 12px !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    }

    .page-template-template-history .table tbody td {
        display: block !important;
        padding: 6px 0 !important;
        border: none !important;
        text-align: left !important;
    }

    /* ID - top right corner */
    .page-template-template-history .table tbody td:nth-child(1) {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        font-size: 0.7rem !important;
        opacity: 0.5 !important;
    }

    /* User - prominent at top */
    .page-template-template-history .table tbody td:nth-child(2) {
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    .page-template-template-history .table tbody td:nth-child(2) .d-flex {
        gap: 8px !important;
    }

    .page-template-template-history .table tbody td:nth-child(2) img,
    .page-template-template-history .table tbody td:nth-child(2) .rounded-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 9px !important;
    }

    .page-template-template-history .table tbody td:nth-child(2) .fw-bold {
        font-size: 0.95rem !important;
    }

    /* Action badge */
    .page-template-template-history .table tbody td:nth-child(3) {
        margin-bottom: 8px !important;
    }

    .page-template-template-history .table tbody td:nth-child(3) .badge {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        min-width: 70px !important;
    }

    /* Details */
    .page-template-template-history .table tbody td:nth-child(4) {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
        color: #4a5568 !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        display: block !important;
        width: 100% !important;
    }

    /* Timestamp */
    .page-template-template-history .table tbody td:nth-child(5) {
        font-size: 0.75rem !important;
        opacity: 0.7 !important;
    }

    .page-template-template-history .table tbody td:nth-child(5) br {
        display: none !important;
    }

    .page-template-template-history .table tbody td:nth-child(5) span {
        display: inline !important;
        margin-left: 5px !important;
    }

    .page-template-template-history .table tbody td:nth-child(5) span::before {
        content: "(" !important;
    }

    .page-template-template-history .table tbody td:nth-child(5) span::after {
        content: ")" !important;
    }

    /* Pagination */
    .page-template-template-history .page-numbers li a,
    .page-template-template-history .page-numbers li span {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.85rem !important;
    }

    .sidebar-header {
        padding: 0;
    }

    .user-info {
        padding: 10px;
    }

    .sidebar-footer {
        padding: 10px;
    }
}

/* Desktop Styles for Report Page */
@media (min-width: 992px) {
    .user-chart-container {
        height: 350px;
    }

    .sidebar-header {
        padding: 0;
    }

    .user-info {
        padding: 10px;
    }

    nav.sidebar-nav {
        padding: 10px 0;
    }

    .sidebar-footer {
        padding: 10px;
    }
}