/* =============================================
   Big PDF - Custom Styles
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   Base Styles
   ============================================ */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* =============================================
   Color Utilities
   ============================================ */

.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.text-purple {
    color: #764ba2;
}

.bg-purple {
    background-color: #764ba2;
}

.bg-purple-light {
    background-color: #f3f4f6;
}

/* =============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* =============================================
   Animations - Keyframes
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* =============================================
   Animation Classes
   ============================================ */

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* =============================================
   Scroll Animations
   ============================================ */

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Hover Effects
   ============================================ */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.4);
}

/* =============================================
   Gradient Text
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   Glass Morphism
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =============================================
   Button Animations
   ============================================ */

.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animate:hover::before {
    width: 300px;
    height: 300px;
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-animate:active {
    transform: translateY(0);
}

/* =============================================
   Header Scroll Effect
   ============================================ */

header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* =============================================
   Loading Animation
   ============================================ */

.loading-dots::after {
    content: '.';
    animation: dots 1.5s steps(4, end) infinite;
}

/* =============================================
   Admin Dashboard Styles
   ============================================ */

/* Admin Sidebar Styles (Consolidated) */
.admin-sidebar {
    height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%) !important;
    background-color: #1e3a8a !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure all sidebar content is white and stable */
.admin-sidebar,
.admin-sidebar *,
.admin-nav-item,
.admin-nav-item span,
.admin-nav-item svg {
    color: #ffffff !important;
    animation: none !important;
}

.admin-sidebar>div {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

/* Logo and Logout containers should not shrink */
.admin-sidebar .flex.items-center.space-x-3.mb-8,
.admin-sidebar .pt-4.border-t {
    flex-shrink: 0 !important;
}

/* THE SCROLLING FIX - using a specific selector */
.admin-sidebar nav {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    padding-right: 4px;
    margin-right: -4px;
}

/* Custom Scrollbar for Sidebar */
.admin-sidebar nav::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.admin-sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.admin-sidebar nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Admin Sidebar Navigation Item */
.admin-nav-item {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    color: #ffffff !important;
    text-decoration: none !important;
}

.admin-nav-item span {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-nav-item svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
}

.admin-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.admin-nav-item:hover::before,
.admin-nav-item.active::before {
    transform: scaleY(1);
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(5px);
    color: #ffffff !important;
}

.admin-nav-item:hover span {
    color: #ffffff !important;
}

.admin-nav-item:hover svg {
    color: #ffffff !important;
}

.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
    border-left: 4px solid #60a5fa;
}

.admin-nav-item.active span {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-nav-item.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Admin Card Animations */
.admin-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.admin-card:nth-child(1) {
    animation-delay: 0.1s;
}

.admin-card:nth-child(2) {
    animation-delay: 0.2s;
}

.admin-card:nth-child(3) {
    animation-delay: 0.3s;
}

.admin-card:nth-child(4) {
    animation-delay: 0.4s;
}

.admin-card:nth-child(5) {
    animation-delay: 0.5s;
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Admin Table Row Animation */
.admin-table-row {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.admin-table-row:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Admin Button Animations */
.admin-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.admin-btn:hover::after {
    width: 300px;
    height: 300px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.admin-btn:active {
    transform: translateY(0);
}

/* Admin Input Focus Animation */
.admin-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.admin-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* Admin Badge Animations */
.admin-badge {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge:hover {
    transform: scale(1.1);
}

/* Admin Modal Animation */
.admin-modal {
    animation: scaleIn 0.3s ease-out;
}

.admin-modal-backdrop {
    animation: fadeIn 0.3s ease-out;
}

/* Admin Search Bar Animation */
.admin-search {
    transition: all 0.3s ease;
}

.admin-search:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* Admin Icon Hover Effect */
.admin-icon {
    transition: all 0.3s ease;
}

.admin-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Admin Stats Card Icon Animation */
.admin-stats-icon {
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.admin-card:hover .admin-stats-icon {
    animation: none;
    transform: scale(1.2) rotate(5deg);
}

/* Admin Table Header */
.admin-table-header {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid #e5e7eb;
}

/* Admin Action Buttons */
.admin-action-btn {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.admin-action-btn:hover {
    transform: scale(1.15);
    background: rgba(59, 130, 246, 0.1);
}

/* Admin Page Header */
.admin-page-header {
    animation: slideInRight 0.6s ease-out;
}

/* Admin Content Fade In */
.admin-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Admin Success/Error Messages */
.admin-alert {
    animation: slideInRight 0.5s ease-out;
    border-left: 4px solid;
}

.admin-alert-success {
    border-left-color: #10b981;
}

.admin-alert-error {
    border-left-color: #ef4444;
}

/* =============================================
   Dark Container Pagination Style (Screenshot)
   ============================================ */

/* Pagination Container Wrapper */
.pagination-container {
    display: inline-block;
}

/* Pagination Navigation */
nav[role="navigation"][aria-label*="Pagination"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Rounded Container for All Buttons */
nav[role="navigation"][aria-label*="Pagination"]>div:last-child>span.relative,
nav[role="navigation"][aria-label*="Pagination"]>div:last-child>span[class*="relative"],
nav[role="navigation"][aria-label*="Pagination"]>div:last-child>span[class*="inline-flex"] {
    display: inline-flex !important;
    align-items: center;
    gap: 0 !important;
    background: #1f2937 !important;
    border-radius: 0.5rem !important;
    padding: 0.25rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
}

/* Pagination Links - Page Numbers - Tightly Packed */
nav[role="navigation"][aria-label*="Pagination"] a[aria-label*="page"],
nav[role="navigation"][aria-label*="Pagination"] span[aria-current="page"] span,
nav[role="navigation"][aria-label*="Pagination"] a[aria-label*="page"] span,
nav[role="navigation"][aria-label*="Pagination"] span[aria-current="page"] span span {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    margin-left: 0 !important;
}

/* Inactive Page Buttons - Dark Background with White Text */
nav[role="navigation"][aria-label*="Pagination"] a[aria-label*="page"] {
    background: transparent !important;
    color: #ffffff !important;
}

/* Active Page - Light Gray Background with Dark Text */
nav[role="navigation"][aria-label*="Pagination"] span[aria-current="page"] span {
    background: #e5e7eb !important;
    color: #1f2937 !important;
    font-weight: 600;
}

/* Page Number Links - Hover Effect */
nav[role="navigation"][aria-label*="Pagination"] a[aria-label*="page"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Previous/Next Buttons - Dark Background with White Icon */
nav[role="navigation"][aria-label*="Pagination"] a[rel="prev"],
nav[role="navigation"][aria-label*="Pagination"] a[rel="next"],
nav[role="navigation"][aria-label*="Pagination"] a[rel="prev"] span,
nav[role="navigation"][aria-label*="Pagination"] a[rel="next"] span {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    margin-left: 0 !important;
}

nav[role="navigation"][aria-label*="Pagination"] a[rel="prev"]:hover,
nav[role="navigation"][aria-label*="Pagination"] a[rel="next"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Disabled Previous/Next */
nav[role="navigation"][aria-label*="Pagination"] span[aria-disabled="true"] span {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent !important;
    color: #9ca3af !important;
}

/* Ellipsis (Dots) */
nav[role="navigation"][aria-label*="Pagination"] span[aria-disabled="true"]:not([aria-label]) span {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-weight: 500;
    color: #ffffff;
    background: transparent;
    border: none;
    margin: 0;
}

/* Mobile Pagination (Hidden on Desktop) */
nav[role="navigation"][aria-label*="Pagination"]>div:first-child {
    display: none;
}

/* Desktop Pagination Container */
nav[role="navigation"][aria-label*="Pagination"]>div:last-child {
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Dropdown */
.dropdown-container .submenu {
    display: none;
}

.dropdown-container .dropdown-arrow {
    transition: transform 0.2s ease;
}

.dropdown-container.open .submenu {
    display: flex;
    flex-direction: column;
}


/* =============================================
   Extracted Admin Layout Styles
   ============================================ */
/* Dropdown Styles */
.dropdown-container .submenu {
    display: none;
}

.dropdown-container .dropdown-arrow {
    transition: transform 0.2s ease;
    transform-origin: center center;
    will-change: transform;
    position: relative;
}

.dropdown-container.open .submenu {
    display: flex;
    flex-direction: column;
}

.dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg) translateZ(0) !important;
}

/* Prevent any animations on dropdown elements and icons */
.dropdown-container * {
    animation: none !important;
}

.dropdown-container .dropdown-arrow {
    animation: none !important;
}

.dropdown-container svg,
.dropdown-container .admin-icon {
    animation: none !important;
    transform: none !important;
}

/* =============================================
   Extracted Tools & Categories Show Styles
   ============================================ */
.article-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
    max-width: 100%;
}

.article-content p {
    margin: 0 0 1.5em 0;
    padding: 0;
    line-height: 1.85;
    color: #4b5563;
}

.article-content h1 {
    font-size: 2.25em;
    font-weight: 700;
    margin: 1.5em 0 0.75em 0;
    line-height: 1.2;
    color: #111827;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5em;
}

.article-content h2 {
    font-size: 1.875em;
    font-weight: 700;
    margin: 1.75em 0 0.75em 0;
    line-height: 1.3;
    color: #111827;
    border-left: 4px solid #3b82f6;
    padding-left: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    background: linear-gradient(to right, #eff6ff, transparent);
}

.article-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 1.5em 0 0.75em 0;
    line-height: 1.4;
    color: #1f2937;
}

.article-content h4 {
    font-size: 1.25em;
    font-weight: 600;
    margin: 1.25em 0 0.5em 0;
    line-height: 1.5;
    color: #374151;
}

.article-content h5 {
    font-size: 1.125em;
    font-weight: 600;
    margin: 1em 0 0.5em 0;
    line-height: 1.6;
    color: #4b5563;
}

.article-content h6 {
    font-size: 1em;
    font-weight: 600;
    margin: 1em 0 0.5em 0;
    line-height: 1.7;
    color: #6b7280;
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
    line-height: 1.85;
}

.article-content ul {
    list-style-type: none;
    padding-left: 0;
}

.article-content ul>li {
    position: relative;
    padding-left: 2em;
    margin: 0.75em 0;
    line-height: 1.85;
    color: #4b5563;
}

.article-content ul>li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.5;
}

.article-content ol {
    list-style-type: decimal;
    counter-reset: item;
}

.article-content ol>li {
    margin: 0.75em 0;
    padding-left: 0.5em;
    line-height: 1.85;
    color: #4b5563;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.article-content ul ul>li:before {
    content: "•";
    color: #6b7280;
    font-size: 1em;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 5px solid #3b82f6;
    background: linear-gradient(to right, #eff6ff, #f9fafb);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.article-content blockquote p {
    margin: 0.75em 0;
    color: #374151;
    font-size: 1.05em;
}

.article-content blockquote p:first-child {
    margin-top: 0;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.article-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #111827;
}

.article-content em,
.article-content i {
    font-style: italic;
    color: #4b5563;
}

.article-content u {
    text-decoration: underline;
    text-decoration-color: #3b82f6;
    text-underline-offset: 2px;
}

.article-content s,
.article-content strike,
.article-content del {
    text-decoration: line-through;
    color: #9ca3af;
}

.article-content code {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
    border: 1px solid #e5e7eb;
}

.article-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3em 0;
    position: relative;
}

.article-content hr:after {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3b82f6;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 2em 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table td,
.article-content table th {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    text-align: left;
}

.article-content table th {
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    font-weight: 600;
    color: #111827;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content table tr:nth-child(even) {
    background: #f9fafb;
}

.article-content table tr:hover {
    background: #f3f4f6;
    transition: background 0.2s ease;
}

.article-content [style*="text-align: left"] {
    text-align: left;
}

.article-content [style*="text-align: center"] {
    text-align: center;
}

.article-content [style*="text-align: right"] {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
        padding: 1.5rem;
    }

    .article-content h1 {
        font-size: 1.875em;
    }

    .article-content h2 {
        font-size: 1.5em;
    }

    .article-content h3 {
        font-size: 1.25em;
    }
}

/* =============================================
   Extracted Widgets Index Styles
   ============================================ */
.widget-type-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
}

.widget-type-card.active {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.widget-preview-container {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =============================================
   Extracted Shared Editor Styles (Tools/Pages)
   ============================================ */
/* Layout fixes */
.flex.gap-6 {
    align-items: flex-start;
}

/* Sticky Toolbar Styles */
.sticky-toolbar-container {
    position: relative;
    z-index: 100;
}

.sticky-tabs-toolbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #f9fafb !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    width: 100%;
}

/* Ensure parent containers don't interfere */
#tool-form,
#page-form {
    position: relative;
    overflow: visible !important;
}

#tool-form>div,
#page-form>div {
    position: static;
    overflow: visible !important;
}

.sticky-tabs-toolbar.bg-gray-50,
#editor-toolbar.sticky-tabs-toolbar {
    background: #f9fafb !important;
}

.editor-btn {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    transition: all 0.15s ease;
}

.editor-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.active-tab {
    color: #1e40af;
    border-bottom-color: #3b82f6;
    background: white;
    font-weight: 500;
}

#visual-editor {
    min-height: 300px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #2c3338;
    background: #fff;
    padding: 12px;
    overflow-y: auto;
}

/* WordPress-style typography */
#visual-editor p {
    margin: 0 0 1em 0;
    padding: 0;
    line-height: 1.8;
}

#visual-editor h1 {
    font-size: 2em;
    font-weight: 600;
    margin: 0.67em 0;
    line-height: 1.2;
}

#visual-editor h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0.83em 0;
    line-height: 1.3;
}

#visual-editor h3 {
    font-size: 1.17em;
    font-weight: 600;
    margin: 1em 0;
    line-height: 1.4;
}

#visual-editor ul {
    margin: 0 0 1em 2em;
    padding: 0;
    list-style-type: disc;
}

#visual-editor ol {
    margin: 0 0 1em 2em;
    padding: 0;
    list-style-type: decimal;
}

#visual-editor blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #2271b1;
    background: #f0f0f1;
    font-style: italic;
}

#visual-editor a {
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
}

/* =============================================
   Extracted Page Builder Styles
   ============================================ */
#page-builder-canvas {
    min-height: 600px;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-item {
    transition: all 0.3s ease;
}

.section-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.active-element {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.builder-section {
    position: relative;
    border: 2px solid transparent;
    margin-bottom: 20px;
}

.builder-section:hover {
    border-color: #3b82f6;
}

.builder-section.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.section-controls {
    position: absolute;
    top: -30px;
    right: 0;
    display: none;
    gap: 4px;
}

.builder-section:hover .section-controls,
.builder-section.selected .section-controls {
    display: flex;
}

.media-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.media-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 160px; /* Fixed height for consistency */
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.media-item .p-4 {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-item .text-base {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.media-item .text-xs {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.media-item .btn-block {
    width: 100%;
    display: block;
}

.media-item .bg-red-500 {
    background-color: #ef4444;
}

.media-item .hover\:bg-red-600:hover {
    background-color: #dc2626;
}

.media-item .text-white {
    color: #ffffff;
}

.media-item .font-semibold {
    font-weight: 600;
}

.media-item .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.media-item .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.media-item .rounded-md {
    border-radius: 0.375rem;
}

.media-item .transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
}

.media-item .duration-200 {
    transition-duration: 200ms;
}
