/* Brand Colors */
:root {
    --muted-black: #1D1D1B;
    --seashell: #EAE4DA;
    --mustard-yellow: #EAC119;
    --lavander: #808BC5;
    --tea: #245E55;
    --pink-quartz: #EAA7C7;
    --tangerine: #ED773C;
    --sky: #9ED6DF;
    --red-passion: #C63F3E;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--muted-black) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.header-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.header-title i {
    color: var(--lavander);
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
}

.header-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

/* Mobile-First Responsive Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
}

/* Tablet and up */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 2.5rem 0;
    }
    
    .header {
        padding: 2.5rem 0;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 3rem 0;
    }
    
    .header {
        padding: 3rem 0;
    }
    
    .header-title {
        justify-content: flex-start;
    }
    
    .header-subtitle {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra large desktop */
@media (min-width: 1800px) {
    .bento-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Bento Card */
.bento-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .bento-card {
        padding: 2rem;
        min-height: 240px;
    }
}

@media (min-width: 1024px) {
    .bento-card {
        min-height: 280px;
    }
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lavander), var(--pink-quartz), var(--tangerine));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--lavander);
    box-shadow: 0 20px 40px rgba(128, 139, 197, 0.2);
}

/* Size variants */
.bento-card.large {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-card.wide {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .bento-card.large {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 400px;
    }
    
    .bento-card.wide {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .bento-card.large {
        min-height: 500px;
    }
}

/* JSON Icon Button */
.json-icon-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(128, 139, 197, 0.1);
    border: 1px solid rgba(128, 139, 197, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.json-icon-btn:hover {
    background: rgba(128, 139, 197, 0.2);
    border-color: var(--lavander);
    transform: scale(1.05);
}

.json-icon-btn i {
    color: var(--lavander);
    width: 16px;
    height: 16px;
}

/* Card structure */
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

@media (min-width: 640px) {
    .card-header-left {
        gap: 1rem;
    }
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .card-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 24px;
    }
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

@media (min-width: 640px) {
    .card-title {
        font-size: 1.1rem;
    }
}

.card-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (min-width: 640px) {
    .card-description {
        font-size: 0.875rem;
    }
}

.card-demo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.code-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.copy-btn {
    background: var(--lavander);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #6b7bb5;
    transform: translateY(-1px);
}

.code-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* JSON Syntax Highlighting */
.json-key { color: #79c0ff; }
.json-string { color: #a5d6ff; }
.json-number { color: #79c0ff; }
.json-boolean { color: #ffab70; }
.json-null { color: #ffa657; }

/* Demo Component Styles */
.demo-button {
    background: linear-gradient(135deg, var(--lavander), var(--pink-quartz));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.demo-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(128, 139, 197, 0.3);
}

.demo-button-small {
    background: var(--lavander);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
    max-width: 250px;
    transition: all 0.2s ease;
}

.demo-input:focus {
    outline: none;
    border-color: var(--lavander);
    box-shadow: 0 0 0 3px rgba(128, 139, 197, 0.1);
}

.demo-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.demo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lavander), var(--pink-quartz));
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.demo-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.demo-toggle {
    width: 60px;
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-toggle.active {
    background: var(--lavander);
    border-color: var(--lavander);
}

.demo-toggle-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.demo-toggle.active .demo-toggle-thumb {
    transform: translateX(28px);
}

.demo-slider {
    width: 100%;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.demo-slider-track {
    height: 100%;
    background: var(--lavander);
    border-radius: 3px;
    transition: width 0.2s ease;
}

.demo-slider-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--lavander);
    border-radius: 50%;
    position: absolute;
    top: -7px;
    transform: translateX(-50%);
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.demo-slider-thumb:hover {
    transform: translateX(-50%) scale(1.1);
}

.demo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.demo-checkbox.checked {
    background: var(--lavander);
    border-color: var(--lavander);
}

.demo-checkbox i {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
    color: white;
}

.demo-checkbox.checked i {
    opacity: 1;
    transform: scale(1);
}

.demo-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.demo-radio.selected {
    border-color: var(--lavander);
}

.demo-radio-dot {
    width: 8px;
    height: 8px;
    background: var(--lavander);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.2s ease;
}

.demo-radio.selected .demo-radio-dot {
    transform: scale(1);
}

.demo-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 150px;
    transition: all 0.2s ease;
}

.demo-select:hover {
    border-color: var(--lavander);
}

.demo-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.demo-select.open .demo-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.demo-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.demo-select-option:last-child {
    border-bottom: none;
}

.demo-select-option:hover {
    background: rgba(128, 139, 197, 0.1);
}

.demo-tabs {
    display: flex;
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.demo-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.demo-tab.active {
    background: var(--lavander);
    color: white;
}

.demo-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
}

.demo-badge.success {
    background: rgba(36, 94, 85, 0.2);
    color: var(--tea);
}

.demo-badge.warning {
    background: rgba(234, 193, 25, 0.2);
    color: var(--mustard-yellow);
}

.demo-badge.error {
    background: rgba(198, 63, 62, 0.2);
    color: var(--red-passion);
}

.demo-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--lavander), var(--pink-quartz));
}

.demo-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.demo-avatar.medium {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.demo-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.demo-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.demo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.demo-card-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.demo-card-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.demo-tooltip-container {
    position: relative;
    display: inline-block;
}

.demo-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.demo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--bg-secondary);
}

.demo-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--lavander);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.demo-spinner-dots {
    display: flex;
    gap: 4px;
}

.demo-spinner-dots div {
    width: 8px;
    height: 8px;
    background: var(--lavander);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite both;
}

.demo-spinner-dots div:nth-child(1) { animation-delay: -0.32s; }
.demo-spinner-dots div:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.demo-skeleton-container {
    width: 100%;
}

.demo-skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-primary) 25%, rgba(255,255,255,0.05) 50%, var(--bg-primary) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    animation: shimmer 1.5s infinite;
}

.demo-skeleton-line.short {
    width: 60%;
}

.demo-skeleton-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(90deg, var(--bg-primary) 25%, rgba(255,255,255,0.05) 50%, var(--bg-primary) 75%);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: shimmer 1.5s infinite;
}

.demo-alert {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    width: 100%;
}

.demo-alert.success {
    background: rgba(36, 94, 85, 0.1);
    border: 1px solid rgba(36, 94, 85, 0.2);
    color: var(--tea);
}

.demo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.demo-breadcrumb span {
    color: var(--text-secondary);
}

.demo-breadcrumb span.active {
    color: var(--text-primary);
    font-weight: 500;
}

.demo-breadcrumb i {
    color: var(--text-secondary);
}

.demo-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-page-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    min-width: 40px;
}

.demo-page-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.demo-page-btn.active {
    background: var(--lavander);
    border-color: var(--lavander);
    color: white;
}

.demo-page-dots {
    color: var(--text-secondary);
    padding: 0 0.5rem;
}

.demo-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
}

.demo-dropzone:hover {
    border-color: var(--lavander);
    background: rgba(128, 139, 197, 0.05);
}

.demo-dropzone div {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.demo-rating {
    display: flex;
    gap: 4px;
}

.demo-star {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-star.filled {
    color: var(--mustard-yellow);
}

.demo-star:hover {
    transform: scale(1.1);
}

.demo-accordion {
    width: 100%;
}

.demo-accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.demo-accordion-header {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    font-weight: 500;
}

.demo-accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.demo-accordion-header i {
    transition: transform 0.2s ease;
    width: 16px;
    height: 16px;
}

.demo-accordion-item.active .demo-accordion-header i {
    transform: rotate(180deg);
}

.demo-accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.demo-accordion-item.active .demo-accordion-content {
    padding: 1rem;
    max-height: 200px;
}

.demo-stepper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.demo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.demo-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.demo-step.completed .demo-step-circle {
    background: var(--tea);
    border-color: var(--tea);
    color: white;
}

.demo-step.active .demo-step-circle {
    background: var(--lavander);
    border-color: var(--lavander);
    color: white;
}

.demo-step span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Data Table Styles */
.demo-data-table {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.demo-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-table-search {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
    max-width: 250px;
}

.demo-table-add-btn {
    background: var(--lavander);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.demo-table-add-btn:hover {
    background: #6b7bb5;
    transform: translateY(-1px);
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.demo-table th,
.demo-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.demo-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.demo-role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.demo-role-badge.admin {
    background: rgba(198, 63, 62, 0.2);
    color: var(--red-passion);
}

.demo-role-badge.user {
    background: rgba(128, 139, 197, 0.2);
    color: var(--lavander);
}

.demo-edit-btn,
.demo-delete-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.25rem;
}

.demo-edit-btn {
    color: var(--lavander);
}

.demo-edit-btn:hover {
    background: rgba(128, 139, 197, 0.1);
    color: #6b7bb5;
}

.demo-delete-btn {
    color: var(--red-passion);
}

.demo-delete-btn:hover {
    background: rgba(198, 63, 62, 0.1);
    color: #d63f3e;
}

/* Mobile table responsiveness */
@media (max-width: 640px) {
    .demo-table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .demo-table-search {
        max-width: none;
    }
    
    .demo-table {
        font-size: 0.8rem;
    }
    
    .demo-table th,
    .demo-table td {
        padding: 0.5rem;
    }
    
    .demo-table th:nth-child(n+4),
    .demo-table td:nth-child(n+4) {
        display: none;
    }
}

/* Hover animations for components */
.bento-card:hover .demo-button {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(128, 139, 197, 0.3);
}

.bento-card:hover .demo-progress-bar {
    animation: progressFill 1s ease;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 65%; }
}

.bento-card:hover .demo-toggle {
    animation: toggleBounce 0.5s ease;
}

@keyframes toggleBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.bento-card:hover .demo-spinner {
    animation: spin 1s linear infinite, pulse 2s ease infinite;
}

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

.bento-card:hover .demo-star {
    animation: starTwinkle 0.5s ease;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.bento-card:hover .demo-avatar {
    animation: avatarPulse 0.6s ease;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(128, 139, 197, 0.5); }
}

.bento-card:hover .demo-badge {
    animation: badgeBounce 0.5s ease;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Touch improvements for mobile */
@media (max-width: 640px) {
    .demo-button,
    .demo-toggle,
    .demo-checkbox,
    .demo-radio,
    .demo-select,
    .demo-tab,
    .json-icon-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .demo-slider-thumb {
        width: 24px;
        height: 24px;
        top: -9px;
    }
    
    .demo-star {
        width: 24px;
        height: 24px;
    }
}