/* Main CSS for Rust CMS - Clean Black & White Design */

/* Component styles are included via include_str! in the respective components */
/* Removed @import statements that were causing 404 errors in production build */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--public-text-secondary, #333);
    background: transparent !important;
}

/* Public Site Styles */
.public-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: var(--public-header-bg, #000);
    color: var(--public-header-text, #fff);
    border-bottom: 2px solid var(--public-border-light, #333);
    position: sticky;
    top: 0;
    z-index: 100;
    /* Remove hardcoded padding - let height property control the size */
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--site-title-color, var(--public-header-text, #fff)) !important;
}

.site-title:hover {
    color: var(--public-header-text-hover, #ccc);
}

/* More specific rule to ensure site-title color is applied in header */
.site-header .site-title,
header .site-title {
    color: var(--site-title-color, var(--public-header-text, #fff)) !important;
}

/* Logo scaling and alignment for scroll effects */
.site-logo,
.site-title {
    transform: scale(var(--logo-scale, 1));
    transition: transform var(--scroll-duration, 300ms) var(--scroll-easing, ease);
    transform-origin: left center;
    height: fit-content;
    line-height: 1;
}

/* Ensure header container maintains proper alignment during scroll effects */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Fill the header height instead of minimum constraint */
    min-height: 60px; /* Keep minimum for very small headers */
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation link styles using CSS variables for live edit customization */
.site-nav .nav-link,
.site-nav a {
    color: var(--header-text, var(--public-header-text, #fff));
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.site-nav .nav-link:hover,
.site-nav a:hover {
    color: var(--nav-hover-color, var(--header-text-hover, #f7fafc));
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Navigation underline effects */
.site-nav .nav-link::after,
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: var(--nav-underline-thickness, 2px);
    background: var(--nav-underline-color, var(--header-text, #fff));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.site-nav .nav-link:hover::after,
.site-nav a:hover::after {
    width: 100%;
}

/* Navigation underline animations */
.site-nav[data-underline-animation="slide"] .nav-link::after,
.site-nav[data-underline-animation="slide"] a::after {
    left: 0;
    transform: translateX(-100%);
}

.site-nav[data-underline-animation="slide"] .nav-link:hover::after,
.site-nav[data-underline-animation="slide"] a:hover::after {
    transform: translateX(0);
}

.site-nav[data-underline-animation="fade"] .nav-link::after,
.site-nav[data-underline-animation="fade"] a::after {
    opacity: 0;
    width: 100%;
}

.site-nav[data-underline-animation="fade"] .nav-link:hover::after,
.site-nav[data-underline-animation="fade"] a:hover::after {
    opacity: 1;
}

.nav-button {
    background: var(--button-primary-bg, linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1)));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--button-primary-text, var(--public-header-text, #fff));
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: var(--button-primary-hover-bg, linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2)));
    color: var(--button-primary-text, var(--public-header-text, #fff));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Login button styles - higher specificity to override nav-button */
.nav-button.login-button,
.login-button {
    background: var(--login-button-bg, var(--public-background-light, #ffffff)) !important;
    color: var(--login-button-text, var(--public-text-primary, #1a1a1a)) !important;
    border: 1px solid var(--login-button-border, var(--public-border-light, #e2e8f0)) !important;
    font-weight: var(--login-button-font-weight, 500) !important;
    font-size: var(--login-button-font-size, 14px) !important;
    padding: var(--login-button-padding, 0.5rem 1rem) !important;
    border-radius: var(--login-button-border-radius, 4px) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.nav-button.login-button:hover,
.login-button:hover {
    background: var(--login-button-hover-bg, var(--public-text-primary, #1a1a1a)) !important;
    color: var(--login-button-hover-text, var(--public-background-light, #ffffff)) !important;
    border-color: var(--login-button-hover-border, var(--public-text-primary, #1a1a1a)) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-main {
    flex: 1;
    padding: 2rem 0;
    background: var(--public-background-light, #fff);
    color: var(--public-text-secondary, #333);
}

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

.hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--public-heading-h1, #000);
}

.hero p {
    font-size: 1.2rem;
    color: var(--public-text-meta, #666);
}

.recent-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--public-heading-h2, #000);
}

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

/* Post card styles moved to public.css for better design system integration */

.post-meta {
    color: var(--public-text-meta, #666);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: var(--public-text-secondary, #555);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--public-link-primary, #000);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--public-link-primary, #000);
    transition: border-color 0.2s ease;
}

.read-more:hover {
    border-color: var(--public-link-hover, #666);
}

.site-footer {
    background: var(--public-footer-bg, #000);
    color: var(--public-footer-text, #fff);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

/* Admin Styles */
.admin-layout {
    min-height: 100vh;
    background: var(--admin-bg-secondary, var(--bg-secondary));
}

.admin-header {
    background: var(--admin-header-gradient, var(--bg-primary));
    color: var(--admin-header-text-color, var(--text-primary));
    padding: 1rem 0;
    border-bottom: 2px solid var(--admin-border-color, var(--border-color));
}

.admin-header-content {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.admin-user {
    color: var(--admin-text-secondary, var(--text-secondary));
}

.admin-content {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 250px;
    background: var(--admin-sidebar-bg, var(--bg-primary));
    border-right: 1px solid var(--admin-border-color, var(--border-color));
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-text-secondary, var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 1rem 0.75rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--admin-border-color, var(--border-color));
}

/* Override section titles in admin sidebar for better contrast */
.admin-sidebar .section-title {
    color: var(--admin-text-secondary, var(--text-secondary)) !important;
    border-bottom-color: var(--admin-border-color, var(--border-color)) !important;
}

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

.admin-nav li {
    margin: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--admin-text-primary, var(--text-primary));
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: 6px;
    gap: 0.75rem;
}

.admin-nav-link:hover {
    background: var(--admin-bg-tertiary, var(--bg-tertiary));
    color: var(--admin-text-primary, var(--text-primary));
    transform: translateX(2px);
}

.admin-nav-link.active {
    background: var(--admin-primary-color, var(--primary-color));
    color: var(--admin-header-text-color, var(--text-light));
    box-shadow: var(--admin-shadow-md, var(--shadow-md));
}

.admin-nav-link.public-link {
    color: var(--admin-info-color, var(--info-color));
    font-weight: 500;
}

.admin-nav-link.public-link:hover {
    background: var(--admin-bg-tertiary, var(--bg-tertiary));
    color: var(--admin-info-color, var(--info-color));
    transform: translateX(2px);
}

.nav-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    font-weight: bold;
    color: inherit;
}

.nav-text {
    font-weight: 500;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: var(--admin-bg-primary, var(--bg-primary));
}

/* Buttons */
.btn {
    display: inline-block;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Default to large size if no size class is specified */
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: #fff;
    color: #000;
    border-color: #000;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    color: #333;
}

/* Ensure readable text in all states */
.form-group input:active,
.form-group textarea:active,
.form-group select:active,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    background: #fff !important;
    color: #333 !important;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
    opacity: 0.8;
}

/* Webkit autofill fix for public forms */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #eee;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f5f5f5;
    font-weight: 600;
    color: #000;
}

tr:hover {
    background: #f9f9f9;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.published,
.status-badge.approved,
.status-badge.active {
    background: #000;
    color: #fff;
}

.status-badge.draft,
.status-badge.pending {
    background: #666;
    color: #fff;
}

.status-badge.spam,
.status-badge.inactive {
    background: #999;
    color: #fff;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* Page content styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

/* Post Detail View Styles - managed by design system */
.post-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--public-text-secondary, #333);
}

.post-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--public-heading-h1, #1a1a1a);
    line-height: 1.2;
}

.post-detail .post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--public-border-light, #e2e8f0);
    color: var(--public-text-meta, #666);
    font-size: 0.9rem;
}

.post-detail .post-content {
    color: var(--public-text-secondary, #333);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-detail .post-content p {
    color: var(--public-text-secondary, #333);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    color: var(--public-text-secondary, #333);
}

.post-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--public-heading-h1, #1a1a1a);
}

.post-content p {
    color: var(--public-text-secondary, #333);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.post-body {
    line-height: 1.8;
    color: var(--public-text-secondary, #333);
}

.not-found {
    text-align: center;
    padding: 4rem 0;
}

.not-found h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000;
}

.not-found p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Page Builder */
.page-builder {
    max-width: 1400px;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.builder-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.builder-sidebar {
    background: var(--public-background-secondary, #f9f9f9);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--public-border-light, #eee);
    height: fit-content;
}

.builder-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--public-text-primary, #000);
    font-size: 1.1rem;
}

.content-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-blocks .btn {
    text-align: left;
    justify-content: flex-start;
}

.builder-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-preview {
    background: var(--public-background-light, #fff);
    border: 1px solid var(--public-border-light, #eee);
    border-radius: 4px;
    padding: 1.5rem;
}

.page-preview h3 {
    margin-bottom: 1rem;
    color: var(--public-text-primary, #000);
    font-size: 1.1rem;
}

.preview-content {
    min-height: 200px;
    border: 1px solid var(--public-border-light, #eee);
    border-radius: 4px;
    padding: 1rem;
    background: var(--public-background-light, #fff);
}

.preview-placeholder {
    color: var(--public-text-muted, #999);
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
}

.content {
    line-height: 1.6;
}

.content h1, .content h2, .content h3 {
    margin-bottom: 1rem;
    color: #000;
}

.content p {
    margin-bottom: 1rem;
    color: #333;
}

.content strong {
    font-weight: 600;
}

.content em {
    font-style: italic;
}

/* Media Library */
.media-library {
    max-width: 1200px;
}

.media-actions {
    display: flex;
    gap: 1rem;
}

.media-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.media-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.media-filter {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.media-search {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.media-view-toggle {
    display: flex;
    gap: 0.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.media-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-preview {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.media-info h4 {
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 1rem;
}

.media-info p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.media-info .media-actions {
    display: flex;
    gap: 0.5rem;
}

.media-info .media-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Modern Dashboard Design */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

/* Unified Admin Page Headers */
.dashboard .page-header,
.admin-page-header,
.post-list .page-header,
.post-editor .page-header,
.user-management .page-header,
.comment-moderation .page-header,
.modern-media-library .page-header,
.settings .page-header,
.navigation-manager .page-header,
.analytics .page-header,
.design-system-page .page-header,
.template-manager .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--admin-primary-gradient);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

/* Page header content alignment */
.dashboard .page-header > div:first-child,
.admin-page-header > div:first-child,
.post-list .page-header > div:first-child,
.post-editor .page-header > div:first-child,
.user-management .page-header > div:first-child,
.comment-moderation .page-header > div:first-child,
.modern-media-library .page-header > div:first-child,
.settings .page-header > div:first-child,
.navigation-manager .page-header > div:first-child,
.analytics .page-header > div:first-child,
.design-system-page .page-header > div:first-child,
.template-manager .page-header > div:first-child {
    text-align: left;
    flex: 1;
}

/* Background decoration for all admin headers */
.dashboard .page-header::before,
.admin-page-header::before,
.post-list .page-header::before,
.post-editor .page-header::before,
.user-management .page-header::before,
.comment-moderation .page-header::before,
.modern-media-library .page-header::before,
.settings .page-header::before,
.navigation-manager .page-header::before,
.analytics .page-header::before,
.design-system-page .page-header::before,
.template-manager .page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

/* Unified Shield Shimmer Effect for all admin headers */
.dashboard .page-header::after,
.admin-page-header::after,
.post-list .page-header::after,
.post-editor .page-header::after,
.user-management .page-header::after,
.comment-moderation .page-header::after,
.modern-media-library .page-header::after,
.settings .page-header::after,
.navigation-manager .page-header::after,
.analytics .page-header::after,
.design-system-page .page-header::after,
.template-manager .page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 70%,
        transparent 100%
    );
    transform: translateX(-100%) skewX(-15deg);
    animation: shimmer-sweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer-sweep {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(100%) skewX(-15deg);
        opacity: 0.6;
    }
    90% {
        opacity: 0;
    }
    100% {
        transform: translateX(100%) skewX(-15deg);
        opacity: 0;
    }
}

/* Logo Effects - SVG Ripple Animation */
@keyframes logo-ripple-1 {
    0% {
        transform: scale(1);
        opacity: var(--logo-pulsate-opacity, 0.7);
    }
    100% {
        transform: scale(calc(2 + var(--logo-pulsate-frequency, 1.5)));
        opacity: 0;
    }
}

@keyframes logo-ripple-2 {
    0% {
        transform: scale(1);
        opacity: calc(var(--logo-pulsate-opacity, 0.7) * var(--logo-pulsate-decay, 0.8));
    }
    100% {
        transform: scale(calc(1.8 + var(--logo-pulsate-frequency, 1.5)));
        opacity: 0;
    }
}

@keyframes logo-ripple-3 {
    0% {
        transform: scale(1);
        opacity: calc(var(--logo-pulsate-opacity, 0.7) * var(--logo-pulsate-decay, 0.8) * var(--logo-pulsate-decay, 0.8));
    }
    100% {
        transform: scale(calc(1.6 + var(--logo-pulsate-frequency, 1.5)));
        opacity: 0;
    }
}

/* Logo Effects Container */
.logo-effect-pulsate {
    position: relative;
    display: inline-block;
    /* Preserve original logo scaling behavior */
    transform: scale(var(--logo-scale, 1));
    transform-origin: left center;
    transition: transform var(--scroll-duration, 300ms) var(--scroll-easing, cubic-bezier(0.68, -0.55, 0.265, 1.55));
}

/* Original logo - completely untouched */
.logo-effect-pulsate img {
    position: relative;
    z-index: 3;
    /* No effects applied to the actual logo */
}

/* SVG Ripple Container - will be populated by JavaScript */
.logo-effect-pulsate .logo-ripples {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* Individual SVG ripple layers */
.logo-effect-pulsate .logo-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

/* Ripple animations for different layers */
.logo-effect-pulsate .logo-ripple.ripple-1 {
    animation: logo-ripple-1 
               calc(var(--logo-pulsate-duration, 3) / var(--logo-pulsate-anim-frequency, 2) * 1s) 
               ease-out 
               infinite;
}

.logo-effect-pulsate .logo-ripple.ripple-2 {
    animation: logo-ripple-2 
               calc(var(--logo-pulsate-duration, 3) / var(--logo-pulsate-anim-frequency, 2) * 1s) 
               ease-out 
               infinite;
    animation-delay: calc(var(--logo-pulsate-duration, 3) / var(--logo-pulsate-anim-frequency, 2) * 0.33s);
}

.logo-effect-pulsate .logo-ripple.ripple-3 {
    animation: logo-ripple-3 
               calc(var(--logo-pulsate-duration, 3) / var(--logo-pulsate-anim-frequency, 2) * 1s) 
               ease-out 
               infinite;
    animation-delay: calc(var(--logo-pulsate-duration, 3) / var(--logo-pulsate-anim-frequency, 2) * 0.66s);
}

/* SVG path styling for ripples */
.logo-effect-pulsate .logo-ripple svg {
    width: 100%;
    height: 100%;
}

.logo-effect-pulsate .logo-ripple svg path,
.logo-effect-pulsate .logo-ripple svg circle,
.logo-effect-pulsate .logo-ripple svg rect,
.logo-effect-pulsate .logo-ripple svg polygon,
.logo-effect-pulsate .logo-ripple svg ellipse {
    fill: none;
    stroke: currentColor;
    stroke-width: calc(var(--logo-pulsate-frequency, 1.5) * 1px);
    stroke-opacity: 1;
    vector-effect: non-scaling-stroke;
}

/* Ensure logo effects work with header masked backgrounds */
.site-header .logo-effect-pulsate {
    z-index: 2;
}

/* Unified header text styling */
.dashboard .page-header h1,
.admin-page-header h1,
.post-list .page-header h1,
.post-editor .page-header h1,
.user-management .page-header h1,
.comment-moderation .page-header h1,
.modern-media-library .page-header h1,
.settings .page-header h1,
.navigation-manager .page-header h1,
.analytics .page-header h1,
.design-system-page .page-header h1,
.template-manager .page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.dashboard .page-header p,
.admin-page-header p,
.post-list .page-header p,
.post-editor .page-header p,
.user-management .page-header p,
.comment-moderation .page-header p,
.modern-media-library .page-header p,
.settings .page-header p,
.navigation-manager .page-header p,
.analytics .page-header p,
.design-system-page .page-header p,
.template-manager .page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Unified header actions styling */
.header-actions .btn,
.admin-page-header .header-actions .btn,
.post-list .header-actions .btn,
.user-management .header-actions .btn,
.comment-moderation .header-actions .btn,
.modern-media-library .header-actions .btn,
.settings .header-actions .btn,
.navigation-manager .header-actions .btn,
.analytics .header-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.header-actions .btn:hover,
.admin-page-header .header-actions .btn:hover,
.post-list .header-actions .btn:hover,
.user-management .header-actions .btn:hover,
.comment-moderation .header-actions .btn:hover,
.modern-media-library .header-actions .btn:hover,
.settings .header-actions .btn:hover,
.navigation-manager .header-actions .btn:hover,
.analytics .header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        gap: 1.5rem;
        min-height: 100px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stat-content .stat-number {
        font-size: 2rem;
    }
}

.stat-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--admin-primary-color, #667eea);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-text-secondary, #6b7280);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-content .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--admin-text-primary, #1f2937);
    margin: 0;
    line-height: 1;
}

/* Dashboard Content Grid */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Recent Sections Base Styling */
.recent-posts, .recent-media {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.recent-posts:hover, .recent-media:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.recent-posts h3, .recent-media h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-posts h3::before {
    content: '📝';
    font-size: 1.5rem;
    background: var(--admin-primary-gradient);
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-media h3::before {
    content: '🖼️';
    font-size: 1.5rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recent Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.post-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--admin-primary-gradient);
    border-radius: 0 2px 2px 0;
}

.post-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.post-info {
    flex: 1;
}

.post-info h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-published {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-badge-draft {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.post-date {
    color: #94a3b8;
    font-weight: 500;
}

.post-actions {
    display: flex;
    gap: 0.75rem;
}

.post-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Comments list (if used) */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
}

.comment-item h4 {
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 1rem;
}

.comment-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: #333;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Recent Media List */
.media-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.media-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.media-preview {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover .media-preview img {
    transform: scale(1.05);
}

.file-icon {
    font-size: 3rem;
    color: #64748b;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.media-info {
    padding: 1.25rem;
}

.media-info h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.media-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.media-size {
    font-weight: 500;
    color: #475569;
}

.media-date {
    color: #94a3b8;
}

.media-actions {
    display: flex;
    gap: 0.5rem;
}

.media-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.media-actions .btn:hover {
    transform: translateY(-1px);
}

/* Quick Actions Section */
.quick-actions {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
}

.quick-actions h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-actions h3::before {
    content: '⚡';
    font-size: 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-buttons .btn {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--admin-primary-gradient);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.action-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-buttons .btn:hover::before {
    left: 100%;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.action-buttons .btn.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.action-buttons .btn.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-radius: 16px;
    border: 2px dashed rgba(148, 163, 184, 0.3);
    color: #64748b;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.9) 0%, rgba(248, 215, 218, 0.7) 100%);
    color: #721c24;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(245, 198, 203, 0.5);
    backdrop-filter: blur(10px);
}

.error-message h3 {
    margin: 0 0 1rem 0;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .post-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .media-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #000;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* ==========================================
   MODERN ADMIN PAGES DESIGN
   ========================================== */

/* Post List Page */
.post-list {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.post-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.post-list > * {
    position: relative;
    z-index: 1;
}

/* Old post list header styles removed - now using unified admin header styles */

.post-list .header-actions .btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post-list .header-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.post-list .header-actions .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.post-list .header-actions .btn:hover::before {
    left: 100%;
}

/* Enhanced Table Container */
.post-list .admin-table-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
}

.post-list .admin-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #10b981);
    animation: gradientShift 3s ease-in-out infinite;
    border-radius: 12px 12px 0 0;
}

.post-list table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
    margin: 0;
}

.post-list th {
    background: var(--admin-table-header-bg, rgba(17, 24, 39, 0.6));
    color: var(--admin-table-header-text, rgba(255, 255, 255, 0.95));
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-table-cell-border, rgba(139, 92, 246, 0.2));
    position: relative;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--admin-table-cell-border, rgba(255, 255, 255, 0.1));
    border-left: 1px solid var(--admin-table-cell-border, rgba(255, 255, 255, 0.1));
    border-right: 1px solid var(--admin-table-cell-border, rgba(255, 255, 255, 0.1));
}

.post-list th:first-child {
    border-left: 1px solid var(--admin-table-cell-border, rgba(255, 255, 255, 0.1));
}

.post-list th:last-child {
    border-right: 1px solid var(--admin-table-cell-border, rgba(255, 255, 255, 0.1));
}

.post-list td {
    background: var(--admin-table-row-bg, rgba(255, 255, 255, 0.02));
    color: var(--admin-text-primary, rgba(255, 255, 255, 0.9));
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-table-row-border, rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
    position: relative;
}

.post-list tbody tr:hover td {
    background: var(--admin-table-row-hover-bg, rgba(255, 255, 255, 0.06));
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-list tbody tr:hover td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #8b5cf6, #3b82f6);
}

.post-list tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.post-list tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.post-list tbody tr:last-child td {
    border-bottom: none;
}

.post-list thead {
    border-spacing: 0;
}

.post-list tbody tr:first-child td {
    padding-top: 1.5rem;
}

/* Enhanced Status Badges */
.post-list .status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.post-list .status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: statusPulse 2s infinite;
}

.post-list .status-badge.published {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.post-list .status-badge.draft {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Enhanced Actions */
.post-list .actions {
    text-align: right;
    white-space: nowrap;
}

.post-list .actions .btn {
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post-list .actions .btn-secondary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.post-list .actions .btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.2) 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.post-list .actions .btn-danger {
    background: var(--admin-btn-danger-bg, #dc2626);
    color: var(--admin-btn-danger-text, #ffffff);
    border-color: var(--admin-btn-danger-bg, #dc2626);
}

.post-list .actions .btn-danger:hover {
    transform: translateY(-2px);
    background: var(--admin-btn-danger-hover-bg, #b91c1c);
    color: var(--admin-btn-danger-text, #ffffff);
    border-color: var(--admin-btn-danger-hover-bg, #b91c1c);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Empty State */
.post-list .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin-top: 2rem;
}

.post-list .empty-state h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-list .empty-state p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.post-list .empty-state .btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.post-list .empty-state .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

/* Loading State */
.post-list .loading {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.post-list .loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error State */
.post-list .error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

/* User Management Page */
.user-management {

    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.user-management::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.user-management > * {
    position: relative;
    z-index: 1;
}

/* Old user management header styles removed - now using unified admin header styles */

.user-management .header-actions .btn {
    background: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-management .header-actions .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* User Management Table Styles - Inherit from post-list */
.user-management .admin-table-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
}

.user-management .admin-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #8b5cf6, #3b82f6);
    animation: gradientShift 4s ease-in-out infinite;
    border-radius: 12px 12px 0 0;
}

.user-management table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
    margin: 0;
}

.user-management th {
    background: rgba(17, 24, 39, 0.6);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.user-management th:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.user-management th:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.user-management td {
    background: var(--admin-table-row-bg, rgba(255, 255, 255, 0.02));
    color: var(--admin-text-primary, rgba(255, 255, 255, 0.9));
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-table-row-border, rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
    position: relative;
}

.user-management tbody tr:hover td {
    background: var(--admin-table-row-hover-bg, rgba(255, 255, 255, 0.06));
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-management tbody tr:hover td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #10b981, #8b5cf6);
}

.user-management thead {
    border-spacing: 0;
}

.user-management tbody tr:first-child td {
    padding-top: 1.5rem;
}

/* User Management Status Badges */
.user-management .status-badge.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.user-management .status-badge.inactive {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.user-management .status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Enhanced User Form */
.user-form {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.user-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #8b5cf6);
    animation: gradientShift 3s ease-in-out infinite;
}

.user-form .form-group {
    margin-bottom: 2rem;
}

.user-form .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-form .form-group input,
.user-form .form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-form .form-group input:focus,
.user-form .form-group select:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.user-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.user-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.user-form .form-actions .btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-form .form-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.user-form .form-actions .btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.user-form .form-actions .btn-secondary {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8) 0%, rgba(55, 65, 81, 0.6) 100%);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-form .form-actions .btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.9) 0%, rgba(55, 65, 81, 0.8) 100%);
    color: white;
}

/* Error Messages */
.user-management .error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
    font-weight: 500;
}

/* Empty State for User Management */
.user-management .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin-top: 2rem;
}

.user-management .empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin: 0;
}

/* Comment Moderation Page */
.comment-moderation {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.comment-moderation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.comment-moderation > * {
    position: relative;
    z-index: 1;
}

/* Old comment moderation header styles removed - now using unified admin header styles */

.comment-moderation .header-actions select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.comment-moderation .header-actions select:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.comment-moderation .header-actions select option {
    background: rgba(31, 41, 55, 0.95);
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Bulk Actions */
.comment-moderation .bulk-actions {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(37, 99, 235, 0.10) 100%
    );
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.comment-moderation .bulk-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    animation: gradientShift 2s ease-in-out infinite;
}

.comment-moderation .bulk-actions span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.875rem;
    flex: 1;
}

.comment-moderation .bulk-actions .btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.comment-moderation .bulk-actions .btn-secondary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.comment-moderation .bulk-actions .btn-secondary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.25) 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.comment-moderation .bulk-actions .btn-danger {
    background: var(--admin-btn-danger-bg, #dc2626);
    color: var(--admin-btn-danger-text, #ffffff);
    border: 1px solid var(--admin-btn-danger-bg, #dc2626);
}

.comment-moderation .bulk-actions .btn-danger:hover {
    transform: translateY(-1px);
    background: var(--admin-btn-danger-hover-bg, #b91c1c);
    color: var(--admin-btn-danger-text, #ffffff);
    border: 1px solid var(--admin-btn-danger-hover-bg, #b91c1c);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Enhanced Comments Table */
.comment-moderation .comments-table {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
}

.comment-moderation .comments-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #3b82f6, #10b981);
    animation: gradientShift 5s ease-in-out infinite;
    border-radius: 12px 12px 0 0;
}

.comment-moderation table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
    margin: 0;
}

.comment-moderation th {
    background: rgba(17, 24, 39, 0.6);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-moderation th:first-child {
    width: 60px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-moderation th:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-moderation td {
    background: var(--admin-table-row-bg, rgba(255, 255, 255, 0.02));
    color: var(--admin-text-primary, rgba(255, 255, 255, 0.9));
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-table-row-border, rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
    position: relative;
    vertical-align: top;
}

.comment-moderation .comment-content {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.875rem;
}

.comment-moderation tbody tr:hover td {
    background: var(--admin-table-row-hover-bg, rgba(255, 255, 255, 0.06));
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comment-moderation tbody tr:hover td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b, #3b82f6);
}

.comment-moderation tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.comment-moderation tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.comment-moderation tbody tr:last-child td {
    border-bottom: none;
}

.comment-moderation thead {
    border-spacing: 0;
}

.comment-moderation tbody tr:first-child td {
    padding-top: 1.5rem;
}

/* Comment Status Badges */
.comment-moderation .status-badge.approved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.comment-moderation .status-badge.rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.comment-moderation .status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Comment Actions */
.comment-moderation .actions {
    text-align: right;
    white-space: nowrap;
}

.comment-moderation .actions .btn {
    padding: 0.5rem 0.875rem;
    margin-left: 0.375rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.comment-moderation .actions .btn-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.comment-moderation .actions .btn-success:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.comment-moderation .actions .btn-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.comment-moderation .actions .btn-warning:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.comment-moderation .actions .btn-danger:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Comment Moderation Checkboxes */
.comment-moderation input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
    border-radius: 4px;
}

/* Empty State for Comments */
.comment-moderation .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin-top: 2rem;
}

.comment-moderation .empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin: 0;
}

/* Error Messages for Comments */
.comment-moderation .error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
    font-weight: 500;
}

/* Loading State for Comments */
.comment-moderation .loading {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.comment-moderation .loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(245, 158, 11, 0.3);
    border-top: 3px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================
   SHARED ANIMATIONS & UTILITIES
   ========================================== */

/* Shimmer Animation */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
        background-size: 200% 200%;
    }
    50% { 
        background-position: 100% 50%; 
        background-size: 200% 200%;
    }
}

/* Status Pulse Animation */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Spin Animation for Loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   RESPONSIVE DESIGN FOR ADMIN PAGES
   ========================================== */

@media (max-width: 1024px) {
    .post-list, .user-management, .comment-moderation {
        padding: 1.5rem;
    }
    
    .post-list .page-header,
    .user-management .page-header,
    .comment-moderation .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .post-list .page-header h1,
    .user-management .page-header h1,
    .comment-moderation .page-header h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .header-actions {
        position: static !important;
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .post-list, .user-management, .comment-moderation {
        padding: 1rem;
    }
    
    .post-list .page-header,
    .user-management .page-header,
    .comment-moderation .page-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .post-list .admin-table-container,
    .user-management .admin-table-container,
    .comment-moderation .comments-table {
        overflow-x: auto;
        border-radius: 8px;
    }
    
    .post-list table,
    .user-management table,
    .comment-moderation table {
        min-width: 600px;
    }
    
    .post-list .actions,
    .user-management .actions,
    .comment-moderation .actions {
        white-space: nowrap;
    }
    
    .post-list .actions .btn,
    .user-management .actions .btn,
    .comment-moderation .actions .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
        margin-left: 0.25rem;
    }
    
    .comment-moderation .bulk-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    
    .comment-moderation .bulk-actions span {
        margin-bottom: 0.5rem;
    }
    
    .user-form {
        padding: 1.5rem;
    }
    
    .user-form .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .user-form .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility classes for better mobile responsiveness */
@media (max-width: 640px) {
    .comment-moderation .comment-content {
        max-width: 200px;
        font-size: 0.8rem;
    }
    
    .post-list th,
    .user-management th,
    .comment-moderation th,
    .post-list td,
    .user-management td,
    .comment-moderation td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .status-badge {
        font-size: 0.65rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

.analytics {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.settings {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}
/* Post Editor */
.post-editor {
    max-width: 800px;
}

.editor-actions {
    display: flex;
    gap: 1rem;
}

.editor-content {
    margin-top: 2rem;
}

/* Authentication */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.auth-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 1.8rem;
}

.auth-header p {
    color: #666;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .btn {
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.error-message {
    background: #ffebee;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #ffcdd2;
}

/* Email Verification Styles */
.verification-content {
    text-align: center;
    padding: 2rem 0;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-icon, .error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.success-icon {
    background: #e8f5e8;
    color: #2e7d32;
}

.error-icon {
    background: #ffebee;
    color: #d32f2f;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Role and Status Badges */
.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.user {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge.editor {
    background: #f3e5f5;
    color: #7b1fa2;
}

.role-badge.admin {
    background: #ffebee;
    color: #d32f2f;
}

.verified-badge, .unverified-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-badge {
    background: #e8f5e8;
    color: #2e7d32;
}

.unverified-badge {
    background: #fff3e0;
    color: #f57c00;
}

.admin-label {
    color: #666;
    font-style: italic;
    font-size: 0.875rem;
}

.status-badge.pending {
    background: #fff3e0;
    color: #f57c00;
}

/* Button variants */
.btn-success {
    background: #4caf50;
    color: white;
    border: 1px solid #4caf50;
}

.btn-success:hover {
    background: #45a049;
    border-color: #45a049;
}

.btn-warning {
    background: #ff9800;
    color: white;
    border: 1px solid #ff9800;
}

.btn-warning:hover {
    background: #f57c00;
    border-color: #f57c00;
}

/* Enhanced table styles for user management */
.admin-table-container table th:nth-child(6),
.admin-table-container table td:nth-child(6) {
    white-space: nowrap;
}

.admin-table-container .actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-table-container .actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Auth link styles */
.auth-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Email settings specific styles */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.settings-header h3 {
    margin: 0;
}

.settings-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-help {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.email-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.email-info h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
}

.email-info ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

.email-info li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Loading Screen */
.loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.loading-spinner {
    color: #666;
    font-size: 1.2rem;
}

/* Button Primary */
.btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Navigation Manager */
.navigation-manager {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #007bff;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.navigation-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.add-navigation-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.add-navigation-item h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.navigation-list {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navigation-list h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.navigation-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.navigation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.navigation-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-info h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.item-url {
    color: #666;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.navigation-item-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 2px solid #007bff;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.navigation-preview {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navigation-preview h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.preview-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.preview-nav-link {
    color: #007bff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background: #fff;
    border: 2px solid #007bff;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.preview-nav-link:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-content {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--admin-border-color, var(--border-color));
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Removed hardcoded site-nav a margin styles */
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .preview-nav {
        flex-direction: column;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* App layout */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.main-container {
    display: flex;
    flex: 1;
    position: relative;
}

.content {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    margin-left: 250px;
    border-radius: 20px 0 0 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.header .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
}

.header .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(20px);
    color: #ffffff;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.sidebar-content {
    padding: 1.5rem 0;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    font-size: 0.875rem;
    color: #e8e8e8;
    opacity: 0.9;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 0;
}

/* Removed duplicate hardcoded nav-link styles to allow menu customization */

.nav-icon {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

/* Page headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-small {
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
}

.btn-medium {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.btn-large {
    padding: 1.25rem 2.5rem !important;
    font-size: 1.1rem !important;
}

.btn-xl {
    padding: 2rem 4rem !important;
    font-size: 1.5rem !important;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(221, 221, 221, 0.5);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

th, td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(238, 238, 238, 0.5);
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.status-badge:hover::before {
    transform: translateX(100%);
}

.status-badge.published,
.status-badge.approved,
.status-badge.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-badge.draft,
.status-badge.pending {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-badge.spam,
.status-badge.inactive {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.role-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Dashboard */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

/* Duplicate dashboard styles removed - using modern design above */

/* Old duplicate stat styles removed */

/* Loading and error states */
.loading {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* Create/Edit forms */
.create-form,
.edit-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.create-form h3,
.edit-form h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* Media grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.media-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-2px);
}

.media-preview {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.media-icon {
    font-size: 3rem;
    color: #7f8c8d;
}

.media-info {
    padding: 1.5rem;
}

.media-info h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.media-meta {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.media-url {
    color: #3498db;
    font-size: 0.875rem;
    word-break: break-all;
}

.media-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

/* Comments */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #7f8c8d;
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

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

.filter-controls select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
}

/* System status */
.system-status {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.online {
    background: #27ae60;
}

.status-text {
    font-weight: 500;
    color: #2c3e50;
}

/* Loading animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9); 
    }
    to { 
        opacity: 1;
        transform: scale(1); 
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.slide-down {
    animation: slideDown 0.6s ease-out;
}

.zoom-in {
    animation: zoomIn 0.5s ease-out;
}

/* Enhanced loading states */
.loading {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced error states */
.error-message {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-message::before {
    content: '⚠️';
    font-size: 1.2rem;
}

/* Success messages */
.success-message {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-message::before {
    content: '✅';
    font-size: 1.2rem;
}

/* Notification system */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.notification.success::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.notification.error::before {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.notification.warning::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.notification.info::before {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .content {
        margin-left: 0;
        padding: 1rem;
        border-radius: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: #e2e8f0;
    }
    
    .content {
        background: rgba(30, 41, 59, 0.95);
        color: #e2e8f0;
    }
    
    /* Fix dark text on dark background issues */
    .page-component,
    .component-preview,
    .markdown-content,
    .form-control,
    .btn,
    .card,
    .post-content,
    .page-content,
    .builder-content,
    .editor-content {
        color: #ffffff !important;
    }
    
    /* Ensure form elements are visible */
    input, textarea, select {
        background: rgba(45, 55, 72, 0.8) !important;
        color: #e2e8f0 !important;
        border-color: #4a5568 !important;
    }
    
    /* Update buttons for dark mode */
    .btn-primary {
        background: #4299e1 !important;
        color: #ffffff !important;
    }
    
    .btn-secondary {
        background: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .sidebar {
        background: rgba(15, 23, 42, 0.95);
    }
    
    .stat-card {
        background: rgba(30, 41, 59, 0.95);
        color: #e2e8f0;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: rgba(30, 41, 59, 0.9);
        color: #e2e8f0;
        border-color: rgba(148, 163, 184, 0.5);
    }
    
    table {
        background: rgba(30, 41, 59, 0.95);
        color: #e2e8f0;
    }
}

/* Page Builder Styles */
.page-builder {
    padding: 2rem;
}

.page-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--public-border-light, #eee);
}

.page-builder-header h1 {
    margin: 0;
    color: var(--public-text-primary, #333);
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.page-builder-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.page-list {
    background: var(--public-background-secondary, #f8f9fa);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.page-list h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--public-text-primary, #333);
}

.pages-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-card {
    background: var(--public-background-light, #fff);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--public-border-light, #e0e0e0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-card:hover {
    border-color: var(--public-link-primary, #007bff);
    box-shadow: 0 2px 8px var(--public-link-shadow, rgba(0, 123, 255, 0.1));
}

.page-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--public-text-primary, #333);
    font-size: 1rem;
}

.page-slug {
    margin: 0.25rem 0;
    color: var(--public-text-secondary, #666);
    font-size: 0.875rem;
    font-family: monospace;
}

.page-status {
    margin: 0.25rem 0;
    color: var(--public-text-secondary, #666);
    font-size: 0.875rem;
    text-transform: capitalize;
}

.page-date {
    margin: 0.25rem 0 0 0;
    color: var(--public-text-muted, #999);
    font-size: 0.75rem;
}

.page-editor {
    background: var(--public-background-light, #fff);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--public-border-light, #e0e0e0);
}

.page-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--public-text-primary, #333);
}

.page-title-input,
.page-slug-input,
.page-status-select {
    padding: 0.75rem;
    border: 1px solid var(--public-border-light, #ddd);
    border-radius: 4px;
    font-size: 1rem;
}

.page-content-editor {
    margin-bottom: 2rem;
}

.page-content-editor label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--public-text-primary, #333);
}

.page-content-textarea {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid var(--public-border-light, #ddd);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.page-preview {
    border-top: 1px solid var(--public-border-light, #eee);
    padding-top: 2rem;
}

.page-preview h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--public-text-primary, #333);
}

.preview-content {
    background: var(--public-background-secondary, #f8f9fa);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--public-border-light, #e0e0e0);
}

.preview-content h1 {
    margin-top: 0;
    color: var(--public-text-primary, #333);
}

.content-preview {
    line-height: 1.6;
    color: var(--public-text-primary, #333);
}

/* Page Display Styles */
.page-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-detail h1 {
    margin-bottom: 1rem;
    color: var(--public-text-primary, #333);
    font-size: 2.5rem;
}

.page-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--public-border-light, #eee);
    color: var(--public-text-secondary, #666);
    font-size: 0.875rem;
}

.page-status {
    text-transform: capitalize;
    font-weight: 500;
}

.page-date {
    color: var(--public-text-muted, #999);
}

.page-content {
    line-height: 1.8;
    color: var(--public-text-primary, #333);
    font-size: 1.1rem;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--public-text-primary, #333);
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid var(--public-link-primary, #007bff);
    background: var(--public-background-secondary, #f8f9fa);
    font-style: italic;
}

.page-content code {
    background: var(--public-background-secondary, #f1f3f4);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.page-content pre {
    background: var(--public-background-secondary, #f1f3f4);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.page-content pre code {
    background: none;
    padding: 0;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--public-text-secondary, #666);
}

.error {
    background: var(--public-error-background, #f8d7da);
    color: var(--public-error-text, #721c24);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--public-error-border, #f5c6cb);
    margin: 1rem 0;
}

.error-message {
    background: var(--public-error-background, #f8d7da);
    color: var(--public-error-text, #721c24);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--public-error-border, #f5c6cb);
    margin-bottom: 1rem;
}

/* ========================================================================================
   MEDIA LIBRARY PAGE
   ======================================================================================== */

.modern-media-library {
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.modern-media-library::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Old modern media library header styles removed - now using unified admin header styles */

.modern-media-library .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.modern-media-library .header-actions .stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Upload Zone */
.modern-media-library .upload-zone {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px);
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-media-library .upload-zone:hover,
.modern-media-library .upload-zone.drag-over {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.modern-media-library .upload-content h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem 0;
}

.modern-media-library .upload-content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.modern-media-library .upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modern-media-library .upload-button {
    background: var(--admin-primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-media-library .upload-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-media-library .upload-button:hover::before {
    left: 100%;
}

.modern-media-library .upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.modern-media-library .supported-formats {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Upload Progress */
.modern-media-library .upload-progress {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-media-library .progress-header h3 {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
}

.modern-media-library .progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-media-library .progress-item.completed {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.modern-media-library .progress-item .filename {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.modern-media-library .progress-item .status {
    font-size: 1.2rem;
}

/* Error Banner */
.modern-media-library .error-banner {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.modern-media-library .error-banner .error-close {
    background: none;
    border: none;
    color: #fecaca;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.modern-media-library .error-banner .error-close:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Media Controls */
.modern-media-library .media-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.modern-media-library .controls-left {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.modern-media-library .filter-select,
.modern-media-library .search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-media-library .filter-select:focus,
.modern-media-library .search-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.modern-media-library .search-input {
    flex: 1;
    min-width: 250px;
}

.modern-media-library .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modern-media-library .view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.modern-media-library .view-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.modern-media-library .view-btn.active {
    background: var(--admin-primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.modern-media-library .view-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Media Grid */
.modern-media-library .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
}

.modern-media-library .media-grid.list-view {
    grid-template-columns: 1fr;
}

.modern-media-library .media-card {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.modern-media-library .media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.modern-media-library .media-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.modern-media-library .media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-media-library .media-card:hover .media-preview img {
    transform: scale(1.05);
}

.modern-media-library .file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.6);
}

.modern-media-library .file-icon .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.modern-media-library .file-icon .extension {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.modern-media-library .media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-media-library .media-card:hover .media-overlay {
    opacity: 1;
}

.modern-media-library .media-overlay .action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modern-media-library .media-overlay .action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.modern-media-library .media-info {
    padding: 1.5rem;
}

.modern-media-library .media-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-media-library .media-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modern-media-library .media-meta span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.modern-media-library .media-type {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem !important;
    font-weight: 600;
    align-self: flex-start;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Loading and Empty States */
.modern-media-library .loading-state,
.modern-media-library .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.modern-media-library .loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.modern-media-library .empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modern-media-library .empty-state h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

/* Lightbox */
.modern-media-library .lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modern-media-library .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-media-library .lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modern-media-library .lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-media-library .lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

.modern-media-library .lightbox-caption {
    background: rgba(17, 24, 39, 0.8);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
}

/* ========================================================================================
   SETTINGS PAGE
   ======================================================================================== */

.settings {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease-in-out infinite;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Old settings header styles removed - now using unified admin header styles */

/* Success Notification */
.settings .notification.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
}

/* Settings Content */
.settings .settings-content {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.settings .settings-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe);
    animation: gradientShift 8s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    border-radius: 16px 16px 0 0;
}

.settings-tabs .tab-button {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.08) 0%, rgba(51, 65, 85, 0.08) 100%);
    border: 1px solid rgba(30, 41, 59, 0.15);
    color: #475569;
    padding: 1rem 1.5rem;
    margin-right: 1rem !important;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex: none !important;
    min-width: auto !important;
}

.settings-tabs .tab-button:last-child {
    margin-right: 0 !important;
}

.settings-tabs .tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-tabs .tab-button:hover::before {
    opacity: 0.6;
}

.settings-tabs .tab-button:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.12) 0%, rgba(51, 65, 85, 0.12) 100%);
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(76, 29, 149, 0.2);
}

.settings-tabs .tab-button.active {
    background: linear-gradient(135deg, #4c1d95 0%, #312e81 50%, #1e1b4b 100%);
    color: var(--admin-text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(76, 29, 149, 0.3);
    transform: translateY(-2px);
}

.settings-tabs .tab-button.active::before {
    opacity: 1;
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Tab Content */
.settings .tab-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 16px 16px;
    padding: 2.5rem;
    margin-top: -2rem;
    min-height: 500px;
}

/* Settings Panel */
.settings .settings-panel {
    padding: 2.5rem;
}

.settings .settings-section {
    margin-bottom: 4rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings .settings-section h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.settings .settings-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    border-radius: 1px;
}

/* Form Grid */
.settings .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.settings .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings .form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.settings .form-group input,
.settings .form-group textarea,
.settings .form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.settings .form-group input:focus,
.settings .form-group textarea:focus,
.settings .form-group select:focus {
    outline: none;
    border-color: rgba(240, 147, 251, 0.5);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.settings .form-group input::placeholder,
.settings .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.settings .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Actions */
.settings .form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Checkbox Groups */
.settings .checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.settings .checkbox-group label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1a1a1a !important;
}

.settings .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #f093fb;
    border-radius: 4px;
}

/* Fix section headers and labels to be visible on light backgrounds */
.settings h3,
.site-configuration h3,
.system-settings h3 {
    color: #1a1a1a !important;
}

/* Ensure all form labels in settings are dark and visible */
.settings .form-group label,
.system-settings .form-group label,
.settings .checkbox-group label,
.system-settings .checkbox-group label {
    color: #1a1a1a !important;
}

/* File Types Section */
.settings .file-types-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings .current-file-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.settings .file-type-tag {
    background: rgba(240, 147, 251, 0.2);
    border: 1px solid rgba(240, 147, 251, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings .file-type-tag:hover {
    background: rgba(240, 147, 251, 0.3);
    transform: translateY(-1px);
}

.settings .remove-file-type {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.settings .remove-file-type:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

.settings .add-file-type {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.settings .add-file-type input {
    flex: 1;
    min-width: 200px;
}

/* Form Actions */
.settings .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.settings .btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.settings .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.settings .btn:hover::before {
    left: 100%;
}

.settings .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.4);
}

.settings .btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.settings .btn-primary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.settings .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Settings Header (for user management) */
.settings .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.settings .settings-header h3 {
    margin: 0;
}

/* Users Table */
.settings .users-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.settings .users-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
    padding: 1rem;
}

.settings .users-table th {
    background: rgba(17, 24, 39, 0.6);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(240, 147, 251, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.settings .users-table td {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.settings .users-table tbody tr {
    transition: all 0.3s ease;
}

.settings .users-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.settings .users-table tbody tr:hover td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f093fb, #f5576c);
}

.settings .users-table .status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

.settings .users-table .status-badge.admin {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.15) 100%);
    color: #f093fb;
    border-color: rgba(240, 147, 251, 0.3);
}

.settings .users-table .status-badge.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.15) 100%);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.settings .users-table .actions {
    display: flex;
    gap: 0.5rem;
}

.settings .users-table .actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 20px;
}

.settings .users-table .actions .btn-secondary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.3));
    color: #8b5cf6;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.settings .users-table .actions .btn-danger {
    background: var(--admin-btn-danger-bg, #dc2626);
    color: var(--admin-btn-danger-text, #ffffff);
    border: 1px solid var(--admin-btn-danger-bg, #dc2626);
}

/* Backup Section */
.settings .backup-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.settings .card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe);
    border-radius: 16px 16px 0 0;
}

.settings .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(240, 147, 251, 0.3);
}

.settings .card h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.settings .card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.settings .backup-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.settings .card small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.settings .card small.warning {
    color: #fbbf24;
    font-weight: 500;
}

/* Loading and Error States */
.settings .loading,
.settings .error {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.settings .error {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========================================================================================
   NAVIGATION MANAGER PAGE
   ======================================================================================== */

.navigation-manager {
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.navigation-manager::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}



/* Error Message */
.navigation-manager .error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

/* Navigation Content */
.navigation-manager .navigation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Add Navigation Item Section */
.navigation-manager .add-navigation-item {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.navigation-manager .add-navigation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #11998e, #38ef7d, #667eea);
    animation: gradientShift 10s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

.navigation-manager .add-navigation-item h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.navigation-manager .add-navigation-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #11998e, #38ef7d);
    border-radius: 1px;
}

/* Form Row */
.navigation-manager .form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.navigation-manager .form-group {
    display: flex;
    flex-direction: column;
}

.navigation-manager .form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.navigation-manager .form-group input,
.navigation-manager .form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navigation-manager .form-group input:focus,
.navigation-manager .form-group select:focus {
    outline: none;
    border-color: rgba(17, 153, 142, 0.5);
    box-shadow: 0 0 20px rgba(17, 153, 142, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.navigation-manager .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Refresh Button */
.navigation-manager .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation-manager .btn-sm:hover {
    background: rgba(17, 153, 142, 0.2);
    border-color: rgba(17, 153, 142, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.navigation-manager .btn-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Add Button */
.navigation-manager .btn-primary {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.navigation-manager .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.navigation-manager .btn-primary:hover::before {
    left: 100%;
}

.navigation-manager .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(17, 153, 142, 0.4);
}

.navigation-manager .btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Navigation List Section */
.navigation-manager .navigation-list {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.navigation-manager .navigation-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38ef7d, #667eea, #11998e);
    animation: gradientShift 11s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

.navigation-manager .navigation-list h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.navigation-manager .navigation-list h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #38ef7d, #667eea);
    border-radius: 1px;
}

/* Loading State */
.navigation-manager .loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Navigation Items */
.navigation-manager .navigation-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.navigation-manager .navigation-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation-manager .navigation-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(17, 153, 142, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.navigation-manager .item-info h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.navigation-manager .item-url {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.navigation-manager .item-actions {
    display: flex;
    gap: 0.75rem;
}

.navigation-manager .btn-small {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navigation-manager .btn-small:hover {
    background: rgba(17, 153, 142, 0.2);
    border-color: rgba(17, 153, 142, 0.3);
    color: white;
    transform: translateY(-1px);
}

.navigation-manager .btn-danger {
    background: var(--admin-btn-danger-bg, #dc2626);
    border-color: var(--admin-btn-danger-bg, #dc2626);
    color: var(--admin-btn-danger-text, #ffffff);
}

.navigation-manager .btn-danger:hover {
    background: var(--admin-btn-danger-hover-bg, #b91c1c);
    border-color: var(--admin-btn-danger-hover-bg, #b91c1c);
    color: var(--admin-btn-danger-text, #ffffff);
}

/* Navigation Item Form (for editing) */
.navigation-manager .navigation-item-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(17, 153, 142, 0.3);
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.1);
}

.navigation-manager .navigation-item-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.navigation-manager .navigation-item-form .form-group {
    flex: 1;
}

.navigation-manager .navigation-item-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.navigation-manager .navigation-item-form input:focus {
    outline: none;
    border-color: rgba(17, 153, 142, 0.5);
    box-shadow: 0 0 15px rgba(17, 153, 142, 0.2);
}

/* Navigation Preview Section */
.navigation-manager .navigation-preview {
    grid-column: 1 / -1;
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.navigation-manager .navigation-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #11998e, #38ef7d);
    animation: gradientShift 13s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

.navigation-manager .navigation-preview h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.navigation-manager .navigation-preview h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #11998e);
    border-radius: 1px;
}

/* Preview Navigation */
.navigation-manager .preview-nav {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.navigation-manager .preview-nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.navigation-manager .preview-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.navigation-manager .preview-nav-link:hover::before {
    left: 100%;
}

.navigation-manager .preview-nav-link:hover {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.3), rgba(56, 239, 125, 0.2));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.2);
    border-color: rgba(17, 153, 142, 0.3);
}

/* ========================================================================================
   ANALYTICS PAGE
   ======================================================================================== */

.analytics {
    background-size: 400% 400%;
    animation: gradientShift 15s ease-in-out infinite;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.analytics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}



/* Analytics Header Actions - Custom Select Styling */
.analytics .header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.analytics .header-actions select {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

.analytics .header-actions select:focus,
.analytics .header-actions select:hover {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.analytics .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.analytics .btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

/* Error Message */
.analytics .error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

/* Analytics Grid */
.analytics .analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Metrics Section */
.analytics .metrics-section {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.analytics .metrics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    animation: gradientShift 10s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

.analytics .metrics-section h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.analytics .metrics-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

/* Metrics Grid */
.analytics .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.analytics .metric-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics .metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--metric-card-default-accent));
    border-radius: 16px 16px 0 0;
}

.analytics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.analytics .metric-card.posts {
    --card-accent: var(--metric-card-posts-accent);
}

.analytics .metric-card.users {
    --card-accent: var(--metric-card-users-accent);
}

.analytics .metric-card.comments {
    --card-accent: var(--metric-card-comments-accent);
}

.analytics .metric-card.media {
    --card-accent: var(--metric-card-media-accent);
}

.analytics .metric-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.analytics .metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analytics .metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.analytics .metric-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analytics .metric-breakdown span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.analytics .metric-breakdown .published {
    color: #10b981;
}

.analytics .metric-breakdown .draft {
    color: #f59e0b;
}

.analytics .metric-breakdown .approved {
    color: #10b981;
}

.analytics .metric-breakdown .pending {
    color: #f59e0b;
}

/* Distribution Section */
.analytics .distribution-section {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.analytics .distribution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #764ba2, #f093fb, #667eea);
    animation: gradientShift 12s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

.analytics .distribution-section h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.analytics .distribution-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #764ba2, #f093fb);
    border-radius: 1px;
}

/* Distribution Chart */
.analytics .distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analytics .chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analytics .chart-label {
    min-width: 80px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
}

.analytics .chart-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.analytics .chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
}

.analytics .chart-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 6px;
    animation: shimmer 2s ease-in-out infinite;
}

.analytics .chart-value {
    min-width: 120px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: right;
}

/* Performance Section */
.analytics .performance-section {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.analytics .performance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f093fb, #667eea, #764ba2);
    animation: gradientShift 14s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

/* Activity Section */
.analytics .activity-section {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.analytics .activity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    animation: gradientShift 16s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

.analytics .activity-section h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.analytics .activity-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 1px;
}

/* Activity List */
.analytics .activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.analytics .activity-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analytics .activity-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analytics .activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(16, 185, 129, 0.3);
}

.analytics .activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.analytics .activity-content {
    flex: 1;
}

.analytics .activity-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.analytics .activity-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.analytics .empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Status Section */
.analytics .status-section {
    background: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.analytics .status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a, #15803d);
    border-radius: 20px 20px 0 0;
}

.analytics .status-section h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.analytics .status-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 1px;
}

/* Status Card */
.analytics .status-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.analytics .status-indicator {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics .status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: statusPulse 2s ease-in-out infinite;
}

.analytics .status-indicator.online {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.analytics .status-indicator.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.analytics .status-details {
    flex: 1;
}

.analytics .status-details p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

/* Loading State */
.analytics .loading {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================================
   RESPONSIVE DESIGN FOR ADMIN PAGES
   ======================================================================================== */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    /* Media Library */
    .modern-media-library .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .modern-media-library .media-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .modern-media-library .controls-left {
        flex-direction: column;
    }
    
    /* Settings */
    .settings .form-grid {
        grid-template-columns: 1fr;
    }
    
    .settings .backup-section {
        grid-template-columns: 1fr;
    }
    
    /* Navigation Manager */
    .navigation-manager .navigation-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .navigation-manager .navigation-item-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Analytics */
    .analytics .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .analytics .header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .analytics .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    /* Global adjustments */
    .modern-media-library,
    .settings,
    .navigation-manager,
    .analytics {
        padding: 1rem;
    }
    
    /* Media Library */
    .modern-media-library .media-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-media-library .upload-zone {
        padding: 2rem 1rem;
    }
    
    .modern-media-library .media-controls {
        padding: 1rem;
    }
    
    .modern-media-library .search-input {
        min-width: 200px;
    }
    
    /* Settings */
    .settings-tabs {
        flex-direction: column;
        padding: 1rem;
    }
    
    .settings-tabs .tab-button {
        background: none;
        border: none;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--admin-text-secondary);
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
    }
    
    .settings-tabs .tab-button:last-child {
        margin-bottom: 0;
    }
    
    .settings .tab-content {
        padding: 1.5rem;
        margin-top: -1rem;
    }
    
    .settings .settings-panel {
        padding: 1.5rem;
    }
    
    .settings .settings-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .settings .settings-section h3 {
        font-size: 1.2rem;
    }
    
    .settings .form-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .settings .users-table {
        overflow-x: auto;
    }
    
    .settings .users-table table {
        min-width: 600px;
    }
    
    .settings .card {
        padding: 1.5rem;
    }
    
    /* Navigation Manager */
    .navigation-manager .add-navigation-item,
    .navigation-manager .navigation-list,
    .navigation-manager .navigation-preview {
        padding: 1.5rem;
    }
    
    .navigation-manager .preview-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation-manager .preview-nav-link {
        text-align: center;
    }
    
    /* Analytics */
    .analytics .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics .metric-card {
        padding: 1.5rem;
    }
    
    .analytics .metric-value {
        font-size: 2rem;
    }
    
    .analytics .chart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .analytics .chart-label {
        min-width: auto;
    }
    
    .analytics .chart-value {
        min-width: auto;
        text-align: left;
    }
    
    .analytics .activity-item {
        padding: 1rem;
    }
    
    .analytics .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .analytics .status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Small mobile screens */
@media (max-width: 640px) {
    /* Global adjustments */
    .modern-media-library .page-header,
    .settings .page-header,
    .navigation-manager .page-header,
    .analytics .page-header,
    .design-system-page .page-header,
    .template-manager .page-header {
        padding: 1.5rem;
    }
    
    .modern-media-library .page-header h1,
    .settings .page-header h1,
    .navigation-manager .page-header h1,
    .analytics .page-header h1,
    .design-system-page .page-header h1,
    .template-manager .page-header h1 {
        font-size: 1.8rem;
    }
    
    /* Media Library */
    .modern-media-library .media-controls {
        padding: 1rem 0.75rem;
    }
    
    .modern-media-library .view-toggle {
        justify-content: center;
    }
    
    .modern-media-library .media-card {
        margin: 0 0.5rem;
    }
    
    /* Settings */
    .settings .form-group input,
    .settings .form-group textarea,
    .settings .form-group select {
        padding: 0.625rem 0.875rem;
    }
    
    .settings .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .settings .users-table th,
    .settings .users-table td {
        padding: 1rem;
    }
    
    /* Navigation Manager */
    .navigation-manager .form-group input,
    .navigation-manager .form-group select {
        padding: 0.625rem 0.875rem;
    }
    
    .navigation-manager .btn-primary {
        padding: 0.75rem 1.5rem;
    }
    
    .navigation-manager .navigation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .navigation-manager .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Analytics */
    .analytics .metric-card {
        padding: 1.25rem;
    }
    
    .analytics .metric-value {
        font-size: 1.75rem;
    }
    
    .analytics .metric-icon {
        width: 40px;
        height: 40px;
    }
    
    .analytics .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .analytics .activity-content {
        width: 100%;
    }
}

/* Component Template Toggle Switches */
.component-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 14px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-color, #4caf50);
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color, #4caf50);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(22px);
}

/* Active/Inactive property tags */
.property-tag.active {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.property-tag.inactive {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Template card adjustments for toggle layout */
.component-card .component-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Responsive adjustments for toggle switches */
@media (max-width: 768px) {
    .component-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .toggle-switch {
        align-self: flex-end;
    }
}

/* ========================================
   COMMENTS SECTION - Text Message Style
   ======================================== */

/* Comments preview in template manager */
.live-comments-preview {
    min-height: 120px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-comments-preview .comment-bubble {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 11px;
}

.live-comments-preview .comment-avatar img {
    border: 1px solid #e2e8f0;
}

.live-comments-preview .comment-content {
    flex: 1;
}

.live-comments-preview .comment-header {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.live-comments-preview .comment-author {
    font-weight: 600;
    color: #1a202c;
}

.live-comments-preview .comment-time {
    color: #718096;
    font-size: 10px;
}

.live-comments-preview .comment-text p {
    margin: 0;
    color: #2d3748;
    line-height: 1.3;
}

.live-comments-preview .comment-form-preview {
    margin-top: 4px;
}

/* ========================================
   COMMENTS SECTION - Text Message Style
   ======================================== */

.comments-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.comments-header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1.5rem;
}

.comments-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.comment-count {
    font-size: 1rem;
    font-weight: 400;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Comment Form */
.comment-form-container {
    margin-bottom: 3rem;
}

.comment-form {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.comment-form:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
}

.comment-form-user {
    color: #495057;
    font-size: 0.9rem;
}

.comment-form-input {
    margin-bottom: 1rem;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
}

.comment-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Auth Prompt */
.comment-auth-prompt {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.auth-prompt-content p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.auth-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Comment Bubbles - Text Message Style */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-bubble {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.comment-time {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 400;
}

.comment-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.25rem;
    border-radius: 18px 18px 18px 4px;
    border: 1px solid #e1e5e9;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    word-wrap: break-word;
    max-width: 100%;
}

.comment-text::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f8f9fa;
    filter: drop-shadow(-1px 0 1px rgba(0, 0, 0, 0.05));
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-style: italic;
}

.no-comments p {
    font-size: 1.1rem;
    margin: 0;
}

/* Loading State */
.comments-section.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-spinner {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-section {
        margin: 2rem 0;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .comments-header h3 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-form {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .comment-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .comment-textarea {
        min-height: 100px;
        padding: 0.75rem;
    }
    
    .comment-form-actions {
        justify-content: stretch;
    }
    
    .comment-form-actions .btn {
        width: 100%;
    }
    
    .auth-prompt-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .auth-prompt-actions .btn {
        width: 100%;
    }
    
    .comment-bubble {
        gap: 0.75rem;
    }
    
    .avatar-image {
        width: 40px;
        height: 40px;
    }
    
    .comment-text {
        padding: 0.875rem 1rem;
        border-radius: 16px 16px 16px 4px;
        font-size: 0.95rem;
    }
    
    .comment-header {
        gap: 0.5rem;
    }
    
    .comment-author {
        font-size: 0.9rem;
    }
    
    .comment-time {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .comments-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .comment-text {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .comment-textarea {
        font-size: 0.9rem;
        min-height: 80px;
    }
}

/* ===========================
   VISUAL EFFECTS STYLES
   =========================== */

/* Glassmorphism Effect - Layer system without redundant blur */
.effect-glassmorphism {
    position: relative !important;
    /* Semi-transparent background for the blur to work through */
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Layer the original gradient on top */
.effect-glassmorphism::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--original-background);
    pointer-events: none;
    z-index: 1;
}

/* Apply multiply effect on top of gradient */
.effect-glassmorphism::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Create multiply layer - white at 0% = no effect, darker colors at 100% = strong multiply */
    background: rgb(
        calc(255 - (255 - 200) * var(--multiply-intensity, 50) / 100),
        calc(255 - (255 - 200) * var(--multiply-intensity, 50) / 100),
        calc(255 - (255 - 200) * var(--multiply-intensity, 50) / 100)
    );
    border: 1px solid rgba(255, 255, 255, calc(var(--multiply-intensity, 50) / 100 * 0.4));
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, calc(var(--multiply-intensity, 50) / 100 * 0.3));
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
}

/* Ensure content stays above all effect layers */
.effect-glassmorphism > * {
    position: relative;
    z-index: 3;
}

/* Neumorphism Effect */
.effect-neumorphism {
    background: linear-gradient(145deg, 
        rgba(240, 240, 240, calc(var(--effect-opacity, 80) / 100)), 
        rgba(202, 202, 202, calc(var(--effect-opacity, 80) / 100))) !important;
    box-shadow: 
        20px 20px 60px rgba(190, 190, 190, calc(var(--effect-opacity, 80) / 100)),
        -20px -20px 60px rgba(255, 255, 255, calc(var(--effect-opacity, 80) / 100)) !important;
    border: none !important;
    border-radius: 20px !important;
}

/* Ensure content stays above the effect */
.effect-neumorphism > * {
    position: relative;
    z-index: 2;
}

/* Dark Neumorphism variant */
.effect-neumorphism.dark-theme {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a) !important;
    box-shadow: 
        20px 20px 60px #0f0f0f,
        -20px -20px 60px #3f3f3f !important;
}

/* Claymorphism Effect */
.effect-claymorphism {
    background: rgba(255, 255, 255, calc(var(--effect-opacity, 80) / 400)) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
}

/* Ensure content stays above the effect */
.effect-claymorphism > * {
    position: relative;
    z-index: 2;
}

/* Cybermorphism Effect */
.effect-cybermorphism {
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, calc(var(--effect-opacity, 80) / 100)) 0%, 
        rgba(26, 26, 46, calc(var(--effect-opacity, 80) / 100)) 50%, 
        rgba(22, 33, 62, calc(var(--effect-opacity, 80) / 100)) 100%) !important;
    border: 2px solid rgba(0, 255, 255, calc(var(--effect-opacity, 80) / 100)) !important;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, calc(var(--effect-opacity, 80) / 300)),
        inset 0 0 20px rgba(0, 255, 255, calc(var(--effect-opacity, 80) / 1000)) !important;
    color: #00ffff !important;
    position: relative !important;
}

/* Ensure content stays above the effect */
.effect-cybermorphism > * {
    position: relative;
    z-index: 2;
}

/* Cybermorphism animation overlay */
.effect-cybermorphism::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
    animation: cyber-scan 3s linear infinite;
    z-index: 3;
}

@keyframes cyber-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Header positioning for effects to show content underneath */
.site-header.effect-glassmorphism,
.site-header.effect-neumorphism,
.site-header.effect-claymorphism,
.site-header.effect-cybermorphism {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
}

/* Mathematical glassmorphism: transparent header with preserved gradient */
.site-header.effect-glassmorphism {
    /* Mathematical transparency: (100 - intensity) / 100 gives us inverse transparency */
    /* At 0% intensity = 100% opaque, at 100% intensity = 0% opaque (fully transparent) */
    opacity: calc((100 - var(--multiply-intensity, 50)) / 100) !important;
    backdrop-filter: blur(calc(var(--multiply-intensity, 50) / 100 * 20px)) saturate(calc(100 + var(--multiply-intensity, 50))) !important;
    -webkit-backdrop-filter: blur(calc(var(--multiply-intensity, 50) / 100 * 20px)) saturate(calc(100 + var(--multiply-intensity, 50))) !important;
    /* Preserve original gradient background */
    background: var(--original-background) !important;
}

/* Fallback blur using filter for better browser support */
@supports not (backdrop-filter: blur(15px)) {
    .site-header.effect-glassmorphism {
        filter: blur(0.5px) !important;
    }
}

/* Dynamic spacing for main content based on header height - reduced to prevent white space */
body.header-has-effects main {
    margin-top: 0 !important; /* Remove automatic margin */
    padding-top: 1rem !important; /* Minimal padding for visual separation */
}

/* Fallback for browsers that don't support CSS custom properties */
.site-header.effect-glassmorphism ~ main,
.site-header.effect-neumorphism ~ main,
.site-header.effect-claymorphism ~ main,
.site-header.effect-cybermorphism ~ main {
    margin-top: 120px !important;
    padding-top: 20px !important;
}

/* Ensure all page content respects the header spacing */
body[style*="--header-height"] main {
    margin-top: 0 !important; /* Remove automatic margin */
    padding-top: 1rem !important; /* Minimal padding */
}

/* Force spacing even without the class as backup */
.site-header[class*="effect-"] + main,
.site-header[class*="effect-"] ~ main {
    margin-top: 0 !important; /* Remove automatic margin */
    padding-top: 1rem !important; /* Minimal padding */
}

/* Effects are now handled by ::before pseudo-elements above */



/* Responsive adjustments for effects */
@media (max-width: 768px) {
    .effect-neumorphism {
        box-shadow: 
            10px 10px 30px #bebebe,
            -10px -10px 30px #ffffff !important;
    }
    
    .effect-neumorphism.dark-theme {
        box-shadow: 
            10px 10px 30px #0f0f0f,
            -10px -10px 30px #3f3f3f !important;
    }
    
    .effect-cybermorphism {
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.3),
            inset 0 0 10px rgba(0, 255, 255, 0.1) !important;
    }
}

/* Enhanced Live Edit Mode Styles */
body.live-edit-mode {
    position: relative;
}

body.live-edit-mode::before {
    content: "🎨 Live Edit Mode Active";
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: liveEditPulse 2s infinite;
}

/* Fix color input width in live edit properties panel */
.properties-panel input[type="color"],
.unified-properties-panel input[type="color"] {
    width: 60px !important;
    height: 36px !important;
    padding: 2px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

@keyframes liveEditPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.05); }
}

/* Enhanced editable element highlighting */
[data-live-editable="true"],
[data-live-component-editable="true"] {
    position: relative;
    transition: all 0.3s ease !important;
}

[data-live-editable="true"]:hover,
[data-live-component-editable="true"]:hover {
    outline: 2px solid rgba(0, 150, 255, 0.8) !important;
    outline-offset: 2px !important;
    background: rgba(0, 150, 255, 0.05) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 150, 255, 0.2) !important;
}

[data-live-editable="true"].selected,
[data-live-component-editable="true"].selected {
    outline: 3px solid #28a745 !important;
    outline-offset: 3px !important;
    background: rgba(40, 167, 69, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3) !important;
}

/* Enhanced properties panel */
.properties-panel {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Unsaved changes indicator animation */
.properties-panel h3 span {
    animation: unsavedBlink 1s infinite alternate;
}

@keyframes unsavedBlink {
    from { opacity: 1; }
    to { opacity: 0.7; }
}
