/* Fallback CSS for CodeGuru - Comprehensive responsive styles */
/* This file provides complete styling if Tailwind CSS fails to load */

:root {
    /* 8PX-BASED SPACING SYSTEM */
    --spacing-0: 0;
    --spacing-1: 0.25rem;  /* 4px */
    --spacing-2: 0.5rem;   /* 8px - Base unit */
    --spacing-3: 0.75rem;  /* 12px */
    --spacing-4: 1rem;     /* 16px */
    --spacing-5: 1.25rem;  /* 20px */
    --spacing-6: 1.5rem;   /* 24px */
    --spacing-8: 2rem;     /* 32px */
    --spacing-10: 2.5rem;  /* 40px */
    --spacing-12: 3rem;    /* 48px */
    --spacing-16: 4rem;    /* 64px */
    --spacing-20: 5rem;    /* 80px */
    --spacing-24: 6rem;    /* 96px */
    
    /* Component Spacing Standards */
    --spacing-card-padding: var(--spacing-6);
    --spacing-card-padding-lg: var(--spacing-8);
    --spacing-section-gap: var(--spacing-16);
    --spacing-section-gap-sm: var(--spacing-12);
    --spacing-form-group: var(--spacing-6);
    --spacing-form-label: var(--spacing-2);
    --spacing-button-padding-x: var(--spacing-6);
    --spacing-button-padding-y: var(--spacing-3);
    
    /* Icon Sizes */
    --icon-size-xs: 1rem;
    --icon-size-sm: 1.5rem;
    --icon-size-md: 2rem;
    --icon-size-lg: 3rem;
    --icon-size-xl: 4rem;
    
    /* Icon Container Sizes */
    --icon-container-sm: 2.5rem;
    --icon-container-md: 3rem;
    --icon-container-lg: 4rem;
    
    /* Button Heights */
    --button-height-sm: 2rem;
    --button-height-md: 2.5rem;
    --button-height-lg: 3rem;
    
    /* Opacity Values */
    --opacity-disabled: 0.6;
    --opacity-hover: 0.8;
    --opacity-subtle: 0.3;
    --opacity-medium: 0.5;
    --opacity-strong: 0.9;
    
    /* Theme Colors (fallback) */
    --theme-primary: #10b981;
    --theme-secondary: #059669;
    --theme-primary-light: #d1fae5;
    --theme-text: #111827;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; padding: 0 1.5rem; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Display utilities */
.flex { display: flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }

/* Flexbox utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing utilities (using standardized spacing variables) */
.p-2 { padding: var(--spacing-2, 0.5rem); }
.p-4 { padding: var(--spacing-4, 1rem); }
.p-6 { padding: var(--spacing-6, 1.5rem); }
.p-8 { padding: var(--spacing-8, 2rem); }
.px-4 { padding-left: var(--spacing-4, 1rem); padding-right: var(--spacing-4, 1rem); }
.px-6 { padding-left: var(--spacing-6, 1.5rem); padding-right: var(--spacing-6, 1.5rem); }
.px-8 { padding-left: var(--spacing-8, 2rem); padding-right: var(--spacing-8, 2rem); }
.py-2 { padding-top: var(--spacing-2, 0.5rem); padding-bottom: var(--spacing-2, 0.5rem); }
.py-4 { padding-top: var(--spacing-4, 1rem); padding-bottom: var(--spacing-4, 1rem); }
.py-6 { padding-top: var(--spacing-6, 1.5rem); padding-bottom: var(--spacing-6, 1.5rem); }
.py-8 { padding-top: var(--spacing-8, 2rem); padding-bottom: var(--spacing-8, 2rem); }
.m-0 { margin: var(--spacing-0, 0); }
.m-4 { margin: var(--spacing-4, 1rem); }
.m-6 { margin: var(--spacing-6, 1.5rem); }
.mb-2 { margin-bottom: var(--spacing-2, 0.5rem); }
.mb-4 { margin-bottom: var(--spacing-4, 1rem); }
.mb-6 { margin-bottom: var(--spacing-6, 1.5rem); }
.mb-8 { margin-bottom: var(--spacing-8, 2rem); }
.mb-12 { margin-bottom: var(--spacing-12, 3rem); }
.mb-16 { margin-bottom: var(--spacing-16, 4rem); }
.mt-4 { margin-top: var(--spacing-4, 1rem); }
.mt-6 { margin-top: var(--spacing-6, 1.5rem); }
.mt-8 { margin-top: var(--spacing-8, 2rem); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-theme-primary { color: var(--theme-primary, #10b981); }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-white { color: #ffffff; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Button styles (using standardized spacing) */
.btn-theme-primary {
    background-color: var(--theme-primary, #10b981);
    color: white;
    padding: var(--spacing-button-padding-y, var(--spacing-3)) var(--spacing-button-padding-x, var(--spacing-6));
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: var(--button-height-md, 2.5rem);
}

.btn-theme-primary:hover {
    background-color: var(--theme-secondary, #059669);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-theme-secondary {
    background-color: var(--theme-secondary, #059669);
    color: white;
    padding: var(--spacing-button-padding-y, var(--spacing-3)) var(--spacing-button-padding-x, var(--spacing-6));
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: var(--button-height-md, 2.5rem);
}

.btn-theme-secondary:hover {
    background-color: var(--theme-primary-dark, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card styles (using standardized spacing) */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-card-padding, var(--spacing-6));
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Border utilities */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

/* Shadow utilities */
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Width and height utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* Background utilities */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-theme-primary { background-color: var(--theme-primary, #10b981); }
.bg-theme-secondary { background-color: var(--theme-secondary, #059669); }
.bg-theme-primary-light { background-color: var(--theme-primary-light, #d1fae5); }

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:block { display: block !important; }
    .sm\:flex { display: flex !important; }
    .sm\:hidden { display: none !important; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .sm\:text-sm { font-size: 0.875rem; }
    .sm\:text-base { font-size: 1rem; }
    .sm\:text-lg { font-size: 1.125rem; }
    .sm\:text-xl { font-size: 1.25rem; }
    .sm\:text-2xl { font-size: 1.5rem; }
    .sm\:text-3xl { font-size: 1.875rem; }
}

@media (min-width: 768px) {
    .md\:block { display: block !important; }
    .md\:flex { display: flex !important; }
    .md\:grid { display: grid !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .md\:text-lg { font-size: 1.125rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex !important; }
    .lg\:grid { display: grid !important; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .lg\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .lg\:text-xl { font-size: 1.25rem; }
    .lg\:text-2xl { font-size: 1.5rem; }
    .lg\:text-3xl { font-size: 1.875rem; }
    .lg\:text-4xl { font-size: 2.25rem; }
    .lg\:text-5xl { font-size: 3rem; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Transitions */
.transition { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease; }
.transition-all { transition: all 0.3s ease; }

/* Hover effects */
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }
.hover\:bg-theme-primary:hover { background-color: var(--theme-primary, #10b981); }
.hover\:text-theme-primary:hover { color: var(--theme-primary, #10b981); }

/* ============================================
   DETAILED COMPONENT STYLING
   Comprehensive styles for all major components
   ============================================ */

/* ============================================
   1. CARDS & CONTENT CONTAINERS
   ============================================ */

.card,
.card-default,
.service-card,
.content-card,
.dashboard-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover,
.card-default:hover,
.service-card:hover,
.dashboard-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-card {
    border-top: 4px solid var(--theme-primary, #10b981);
}

.content-card {
    border-left: 4px solid var(--theme-primary, #10b981);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.card-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ============================================
   2. BUTTONS & CTAs
   ============================================ */

.btn,
button,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
}

.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

/* ============================================
   3. FORMS & INPUTS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #111827;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--theme-primary, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

input.error,
textarea.error,
select.error {
    border-color: #dc2626;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    padding-right: 3rem;
}

.search-form .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* ============================================
   4. NAVIGATION COMPONENTS
   ============================================ */

nav.bg-white.border-b {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav[aria-label="Breadcrumb"] ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav[aria-label="Breadcrumb"] a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav[aria-label="Breadcrumb"] a:hover {
    color: var(--theme-primary, #10b981);
}

.tab-button {
    padding: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tab-button.active {
    border-bottom-color: var(--theme-primary, #10b981);
    color: var(--theme-primary, #10b981);
    font-weight: 600;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.pagination a {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--theme-primary-light, #d1fae5);
    border-color: var(--theme-primary, #10b981);
    color: var(--theme-primary, #10b981);
}

.pagination .active {
    background: var(--theme-primary, #10b981);
    color: white;
    border-color: var(--theme-primary, #10b981);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--theme-primary-light, #d1fae5);
    color: var(--theme-primary, #10b981);
}

/* ============================================
   5. CONTENT SECTIONS
   ============================================ */

.hero-section,
section.text-center {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--theme-primary-light, #d1fae5) 0%, white 100%);
}

@media (min-width: 768px) {
    .hero-section,
    section.text-center {
        padding: 6rem 1rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

.content-section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .content-section {
        padding: 4rem 0;
    }
}

/* ============================================
   6. SIDEBARS
   ============================================ */

.sidebar {
    width: 16rem;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.sidebar-nav-link:hover {
    background: var(--theme-primary-light, #d1fae5);
    color: var(--theme-primary, #10b981);
}

.sidebar-nav-link.active {
    background: var(--theme-primary, #10b981);
    color: white;
}

.sidebar-nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
}

/* ============================================
   7. PROGRESS & STATUS
   ============================================ */

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--theme-primary, #10b981);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--theme-primary-light, #d1fae5);
    color: var(--theme-primary, #10b981);
}

.badge-primary {
    background: var(--theme-primary, #10b981);
    color: white;
}

.badge-secondary {
    background: var(--theme-secondary, #059669);
    color: white;
}

.status-indicator {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #6b7280;
}

.status-indicator.active {
    background: var(--theme-primary, #10b981);
}

.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top-color: var(--theme-primary, #10b981);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   8. TABLES
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

thead {
    background: var(--theme-primary-light, #d1fae5);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--theme-primary, #10b981);
    font-size: 0.875rem;
    text-transform: uppercase;
}

tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: var(--theme-primary-light, #d1fae5);
}

td {
    padding: 1rem;
    color: #374151;
    font-size: 0.875rem;
}

/* ============================================
   9. MODALS & OVERLAYS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================
   10. TYPOGRAPHY & CONTENT
   ============================================ */

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 0.5rem;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.875rem; }
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #374151;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #374151;
}

blockquote {
    border-left: 4px solid var(--theme-primary, #10b981);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #dc2626;
    font-family: 'Courier New', monospace;
}

pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

a:not(.btn):not(.no-theme) {
    color: var(--theme-primary, #10b981);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:not(.btn):not(.no-theme):hover {
    color: var(--theme-secondary, #059669);
    text-decoration: underline;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   UTILITY CLASSES FOR STANDARDIZED SPACING
   ============================================ */

/* Section spacing utilities */
.section-gap {
    margin-bottom: var(--spacing-section-gap, var(--spacing-16));
}

.section-gap-sm {
    margin-bottom: var(--spacing-section-gap-sm, var(--spacing-12));
}

/* Opacity utilities */
.opacity-subtle {
    opacity: var(--opacity-subtle, 0.3);
}

.opacity-medium {
    opacity: var(--opacity-medium, 0.5);
}

.opacity-strong {
    opacity: var(--opacity-strong, 0.9);
}

.opacity-disabled {
    opacity: var(--opacity-disabled, 0.6);
}

/* Icon size utilities */
.icon-xs {
    font-size: var(--icon-size-xs, 1rem);
}

.icon-sm {
    font-size: var(--icon-size-sm, 1.5rem);
}

.icon-md {
    font-size: var(--icon-size-md, 2rem);
}

.icon-lg {
    font-size: var(--icon-size-lg, 3rem);
}

.icon-xl {
    font-size: var(--icon-size-xl, 4rem);
}

/* Icon container utilities */
.icon-container-sm {
    width: var(--icon-container-sm, 2.5rem);
    height: var(--icon-container-sm, 2.5rem);
}

.icon-container-md {
    width: var(--icon-container-md, 3rem);
    height: var(--icon-container-md, 3rem);
}

.icon-container-lg {
    width: var(--icon-container-lg, 4rem);
    height: var(--icon-container-lg, 4rem);
}

/* Text color utilities */
.text-theme-primary {
    color: var(--theme-primary, #10b981);
}

.text-theme-primary-light {
    color: var(--theme-primary-light, #d1fae5);
}

.text-theme-text {
    color: var(--theme-text, #111827);
}

