/* ============================================
   ADMIN BLOGS - GROUPED DROPDOWNS CSS
   ============================================ */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

body.dark-mode {
    --bg-card: #1e293b;
    --bg-primary: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
}

/* Stats Cards */
.blogs-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.blog-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.blog-stat-icon.total { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.blog-stat-icon.published { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.blog-stat-icon.draft { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.blog-stat-icon.hidden { background: linear-gradient(135deg, #ef4444, #f87171); color: white; }
.blog-stat-icon.likes { background: linear-gradient(135deg, #ec4899, #f472b6); color: white; }
.blog-stat-icon.views { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white; }

.blog-stat-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.blog-stat-info p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--gray-500);
}

/* Selection Toolbar */
.selection-toolbar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.selection-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Bulk Dropdowns */
.bulk-dropdown {
    position: relative;
    display: inline-block;
}

.bulk-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bulk-dropdown-btn i:last-child {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.bulk-dropdown:hover .bulk-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.bulk-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.bulk-dropdown:hover .bulk-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.bulk-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--gray-700);
}

.bulk-dropdown-menu a:first-child { border-radius: 8px 8px 0 0; }
.bulk-dropdown-menu a:last-child { border-radius: 0 0 8px 8px; }
.bulk-dropdown-menu a i { width: 18px; }

.bulk-dropdown-menu a:hover { background: var(--gray-100); }

/* Selection Dropdown */
.selection-buttons .bulk-dropdown .bulk-dropdown-btn {
    background: #6366f1;
    color: white;
}

.selection-buttons .bulk-dropdown .bulk-dropdown-btn:hover {
    background: #4f46e5;
}

/* Bulk action buttons */
.bulk-action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bulk-actions-buttons .bulk-dropdown .bulk-action-btn {
    background: var(--gray-100);
    color: var(--gray-700);
}

.bulk-action-btn.delete { 
    background: #fee2e2;
    color: #991b1b;
}

.bulk-action-btn.delete:hover { 
    background: #ef4444;
    color: white;
}

.bulk-action-btn.clear { 
    background: var(--gray-100);
    color: var(--gray-600);
}

.bulk-action-btn.clear:hover { 
    background: var(--gray-200);
}

/* Selection Count */
.selection-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.selection-count.zero {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.selection-count:not(.zero) {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Filters Bar */
.blogs-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    gap: 0.5rem;
    min-width: 250px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: white;
    cursor: pointer;
}

.view-toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-outline {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-primary {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
}

/* Grid View */
.blogs-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.blog-card-status.active { background: #10b981; }
.blog-card-status.draft { background: #f59e0b; }
.blog-card-status.hidden { background: #ef4444; }

.blog-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.blog-select {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.blog-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.blog-card-content {
    padding: 1.25rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.7rem;
    color: var(--gray-400);
}

.blog-card-stats {
    display: flex;
    gap: 1rem;
}

.blog-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Card Actions - Grouped */
.blog-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

.blog-action-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-action-btn.view { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.blog-action-btn.view:hover { background: #6366f1; color: white; }

.blog-action-btn.edit { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.blog-action-btn.edit:hover { background: #3b82f6; color: white; }

.blog-action-btn.delete { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.blog-action-btn.delete:hover { background: #ef4444; color: white; }

/* Action Dropdown for Cards */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-toggle {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.action-toggle:hover {
    background: #f59e0b;
    color: white;
}

.action-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    min-width: 150px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    margin-bottom: 5px;
}

.action-dropdown:hover .action-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.action-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--gray-700);
    font-size: 0.75rem;
}

.action-dropdown-menu a:hover {
    background: var(--gray-100);
}

.action-dropdown-menu a:first-child { border-radius: 8px 8px 0 0; }
.action-dropdown-menu a:last-child { border-radius: 0 0 8px 8px; }

/* List View */
.blogs-list-view {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    overflow-x: auto;
}

.blogs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.blogs-table th,
.blogs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.blogs-table th {
    background: var(--gray-100);
    font-weight: 600;
}

.blog-title-cell .blog-info-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-thumb {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.blog-info .title {
    font-weight: 600;
}

.blog-info .excerpt {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.status-active { background: rgba(16, 185, 129, 0.12); color: #0a5c3e; }
.status-badge.status-draft { background: rgba(245, 158, 11, 0.12); color: #8b5c00; }
.status-badge.status-hidden { background: rgba(239, 68, 68, 0.12); color: #9b1c1c; }

.blog-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-toggle-small {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 0.35rem 0.5rem;
}

.action-toggle-small:hover {
    background: #f59e0b;
    color: white;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loading */
.text-center { text-align: center; }
.py-5 { padding: 3rem 0; }
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.text-muted { color: var(--gray-400); }
.mt-2 { margin-top: 0.5rem; }

/* Bulk Loading Overlay */
.bulk-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .blogs-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .blogs-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .blogs-filters-bar { flex-direction: column; align-items: stretch; }
    .search-box { width: 100%; }
    .blogs-grid-view { grid-template-columns: 1fr; }
    .selection-toolbar { flex-direction: column; align-items: stretch; }
    .selection-buttons { justify-content: center; }
    .bulk-actions-buttons { justify-content: center; }
}

@media (max-width: 480px) {
    .blogs-stats-grid { grid-template-columns: 1fr; }
}

/* Dark Mode */
body.dark-mode .blog-stat-card,
body.dark-mode .selection-toolbar,
body.dark-mode .blogs-filters-bar,
body.dark-mode .blog-card,
body.dark-mode .blogs-list-view,
body.dark-mode .empty-state,
body.dark-mode .dropdown-menu,
body.dark-mode .action-dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border);
}

body.dark-mode .blog-stat-info h3,
body.dark-mode .blog-card-title,
body.dark-mode .blog-info .title {
    color: var(--text-primary);
}

body.dark-mode .blog-card-excerpt,
body.dark-mode .blog-info .excerpt {
    color: var(--text-secondary);
}

body.dark-mode .filter-select,
body.dark-mode .search-box {
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-primary);
}

body.dark-mode .dropdown-menu a,
body.dark-mode .action-dropdown-menu a {
    color: var(--text-primary);
}

body.dark-mode .dropdown-menu a:hover,
body.dark-mode .action-dropdown-menu a:hover {
    background: var(--bg-primary);
}

body.dark-mode .selection-count.zero {
    background: #334155;
    color: var(--text-secondary);
}

body.dark-mode .status-badge.status-active { background: rgba(16, 185, 129, 0.2); color: #34d399; }
body.dark-mode .status-badge.status-draft { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
body.dark-mode .status-badge.status-hidden { background: rgba(239, 68, 68, 0.2); color: #f87171; }
/* Action Dropdown for Cards - OPEN ABOVE */
.action-dropdown {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.action-toggle {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.action-toggle:hover {
    background: #f59e0b;
    color: white;
}

/* Make dropdown appear ABOVE the button */
.action-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    min-width: 150px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    margin-bottom: 8px;
}

.action-dropdown:hover .action-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

/* Ensure card doesn't clip the dropdown */
.blog-card {
    overflow: visible !important;
}

.blog-card-content {
    overflow: visible !important;
}

.blog-card-actions {
    overflow: visible !important;
    position: relative;
    z-index: 50;
}

/* For list view table, ensure dropdown has enough space */
.blog-actions-cell {
    position: relative;
    overflow: visible;
}

.blog-actions {
    position: relative;
    overflow: visible;
}

/* Make list view dropdown also open above */
.blog-actions .action-dropdown .action-dropdown-menu {
    bottom: 100%;
    top: auto;
    left: 0;
}
/* ============================================
   BLOG VIEW MODAL - Small Image on Left
   ============================================ */

/* Modal close button styling */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--danger);
    color: white;
}

/* Blog View Header Row */
.blog-view-header-row {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1rem 0 1rem;
    flex-wrap: wrap;
}

/* Small Image Column */
.blog-view-image-col {
    flex: 0 0 180px;
}

.blog-view-small-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Details Column */
.blog-view-details-col {
    flex: 1;
    min-width: 250px;
}

.blog-view-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--gray-800);
    line-height: 1.3;
}

/* Badges */
.blog-view-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.view-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.view-status-badge.active { background: #10b981; }
.view-status-badge.draft { background: #f59e0b; }
.view-status-badge.hidden { background: #ef4444; }

.view-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* Meta Info */
.blog-view-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.meta-item i {
    width: 14px;
    color: var(--primary);
}

/* Excerpt Box */
.blog-view-excerpt-box {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    margin-top: 0.5rem;
}

.blog-view-excerpt-box i {
    color: var(--primary);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.blog-view-excerpt-box p {
    display: inline;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Full Content Section */
.blog-view-content-full {
    padding: 1rem;
    margin-top: 0.5rem;
}

.content-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.content-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

.content-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-view-content {
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.blog-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Dark Mode for View Modal */
body.dark-mode .blog-view-title {
    color: var(--text-primary);
}

body.dark-mode .meta-item {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

body.dark-mode .blog-view-excerpt-box {
    background: var(--bg-primary);
}

body.dark-mode .blog-view-excerpt-box p {
    color: var(--text-secondary);
}

body.dark-mode .content-divider::before {
    background: var(--border);
}

body.dark-mode .content-divider span {
    background: var(--bg-card);
    color: var(--text-muted);
}

body.dark-mode .blog-view-content {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-view-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .blog-view-image-col {
        flex: 0 0 auto;
        width: 150px;
    }
    
    .blog-view-small-img {
        height: 150px;
    }
    
    .blog-view-details-col {
        text-align: center;
    }
    
    .blog-view-badges {
        justify-content: center;
    }
    
    .blog-view-meta-info {
        justify-content: center;
    }
    
    .blog-view-excerpt-box {
        text-align: left;
    }
    
    .modal-close-btn {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .blog-view-image-col {
        width: 120px;
    }
    
    .blog-view-small-img {
        height: 120px;
    }
    
    .blog-view-title {
        font-size: 1.2rem;
    }
}
/* AGGRESSIVE FIX - Ensures dropdown appears on top */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown .action-dropdown-menu {
    position: fixed !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 999999 !important;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
}

.action-dropdown:hover .action-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1);
}

/* Position the dropdown dynamically near the button */
.action-dropdown {
    position: relative;
}

.action-dropdown .action-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
}

/* For list view actions */
.blog-actions-cell .action-dropdown .action-dropdown-menu {
    bottom: 100%;
    left: 0;
}

/* Ensure no clipping */
.blog-card,
.blog-card-content,
.blog-card-actions,
.blogs-grid-view,
.blogs-list-view,
.blogs-table,
.blogs-table tbody,
.blogs-table tr,
.blogs-table td {
    overflow: visible !important;
}

/* Higher z-index for dropdowns */
.action-dropdown,
.bulk-dropdown {
    z-index: 1000;
}

.action-dropdown-menu,
.bulk-dropdown-menu {
    z-index: 99999 !important;
}
/* ============================================
   BLOG CONTENT DISPLAY STYLES FOR ADMIN
   ============================================ */

/* Blog content display wrapper */
.blog-view-content-full {
    margin-top: 1rem;
}

.blog-content-display {
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Headers within blog content */
.blog-content-display h1,
.blog-content-display h2,
.blog-content-display h3,
.blog-content-display h4,
.blog-section-header {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    color: var(--gray-800);
}

.blog-content-display h1 { font-size: 1.8rem; }
.blog-content-display h2 { font-size: 1.5rem; }
.blog-content-display h3 { font-size: 1.25rem; }
.blog-content-display h4,
.blog-section-header { 
    font-size: 1.1rem;
    color: var(--primary);
}

/* Paragraphs */
.blog-content-display p {
    margin-bottom: 1em;
    line-height: 1.7;
}

/* Bold and Strong */
.blog-content-display strong,
.blog-content-display b {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Lists */
.blog-content-display ul,
.blog-content-display ol,
.blog-content-list {
    margin: 1em 0;
    padding-left: 1.5em;
}

.blog-content-display li,
.blog-content-list li {
    margin: 0.5em 0;
    line-height: 1.6;
}

/* Unordered list bullets */
.blog-content-list {
    list-style: none;
    padding-left: 0;
}

.blog-content-list li {
    padding-left: 1.5em;
    position: relative;
}

.blog-content-list li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0.5em;
}

/* Ordered lists */
.blog-content-display ol {
    list-style-type: decimal;
}

/* Images within content */
.blog-content-display img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Blockquotes */
.blog-content-display blockquote {
    border-left: 3px solid var(--primary);
    margin: 1em 0;
    padding: 0.5em 1em;
    background: var(--gray-100);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Code blocks */
.blog-content-display pre,
.blog-content-display code {
    background: var(--gray-100);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-content-display pre {
    padding: 1em;
    overflow-x: auto;
}

/* Tables */
.blog-content-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.blog-content-display th,
.blog-content-display td {
    border: 1px solid var(--gray-300);
    padding: 0.5em;
    text-align: left;
}

.blog-content-display th {
    background: var(--gray-100);
    font-weight: 600;
}

/* Dark Mode Support */
body.dark-mode .blog-content-display {
    color: var(--text-secondary);
}

body.dark-mode .blog-content-display h1,
body.dark-mode .blog-content-display h2,
body.dark-mode .blog-content-display h3,
body.dark-mode .blog-section-header {
    color: var(--text-primary);
}

body.dark-mode .blog-content-display blockquote {
    background: var(--bg-primary);
}

body.dark-mode .blog-content-display pre,
body.dark-mode .blog-content-display code {
    background: var(--bg-primary);
}

body.dark-mode .blog-content-display th,
body.dark-mode .blog-content-display td {
    border-color: var(--border);
}

body.dark-mode .blog-content-display th {
    background: var(--bg-primary);
}