/* Selenium Data Page Specific Styles - Neutral Glassmorphism Theme */

/* Stat Cards - Glassmorphism Enhanced */
.stat-card {
    background: var(--ghost-glass-bg, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--ghost-border-subtle, rgba(148, 163, 184, 0.2));
    border-radius: var(--ghost-radius-lg, 0.75rem);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--ghost-shadow-glass, 0 8px 32px rgba(0, 0, 0, 0.1));
    transition: all 0.2s ease;
}

.dark .stat-card,
html.dark .stat-card {
    background: var(--ghost-surface-card, rgba(30, 41, 59, 0.7));
    border-color: var(--ghost-border-subtle, rgba(51, 65, 85, 0.4));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ghost-shadow-glass-hover, 0 16px 48px rgba(0, 0, 0, 0.15));
    border-color: var(--ghost-primary, #64748b);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--ghost-radius-lg, 0.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ghost-muted-text, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ghost-heading-text, #1e293b);
}

.dark .stat-value,
html.dark .stat-value {
    color: var(--ghost-slate-50, #f8fafc);
}

/* View Toggle Buttons - Neutral */
.btn-sm.active {
    background: var(--ghost-gradient-primary, linear-gradient(135deg, #475569 0%, #334155 100%));
    color: white;
    border-color: transparent;
}

.dark .btn-sm.active,
html.dark .btn-sm.active {
    background: var(--ghost-gradient-primary);
}

/* Data Cards Styling - Glassmorphism */
.data-card {
    background: var(--ghost-glass-bg, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--ghost-border-muted, rgba(148, 163, 184, 0.3));
    border-radius: var(--ghost-radius-xl, 1rem);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    box-shadow: var(--ghost-shadow-glass);
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ghost-gradient-secondary, linear-gradient(90deg, #64748b, #94a3b8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dark .data-card,
html.dark .data-card {
    background: var(--ghost-surface-card, rgba(30, 41, 59, 0.7));
    border-color: var(--ghost-border-subtle);
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ghost-shadow-glass-hover);
    border-color: var(--ghost-primary, #64748b);
}

.data-card:hover::before {
    opacity: 1;
}

/* JSON Syntax Highlighting - Neutral Tones */
.json-key {
    color: var(--ghost-slate-600, #475569);
}

.json-string {
    color: var(--ghost-slate-700, #334155);
}

.json-number {
    color: var(--ghost-slate-500, #64748b);
}

.json-boolean {
    color: var(--ghost-slate-600, #475569);
}

.json-null {
    color: var(--ghost-slate-400, #94a3b8);
}

.dark .json-key,
html.dark .json-key {
    color: var(--ghost-slate-300, #cbd5e1);
}

.dark .json-string,
html.dark .json-string {
    color: var(--ghost-slate-200, #e2e8f0);
}

.dark .json-number,
html.dark .json-number {
    color: var(--ghost-slate-400, #94a3b8);
}

.dark .json-boolean,
html.dark .json-boolean {
    color: var(--ghost-slate-300, #cbd5e1);
}

.dark .json-null,
html.dark .json-null {
    color: var(--ghost-slate-500, #64748b);
}

/* Data Preview Styling */
.data-preview {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.data-preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--ghost-body-bg, white));
}

.dark .data-preview-fade,
html.dark .data-preview-fade {
    background: linear-gradient(to bottom, transparent, var(--ghost-slate-900, #0f172a));
}

/* Checkbox Styling */
.table-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 0.25rem;
    border: 1px solid var(--ghost-border-muted, #cbd5e1);
    cursor: pointer;
    accent-color: var(--ghost-primary, #64748b);
}

.dark .table-checkbox,
html.dark .table-checkbox {
    border-color: var(--ghost-slate-600, #475569);
    background-color: var(--ghost-slate-800, #1e293b);
}

/* Action Buttons in Table - Neutral */
.action-btn-group {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--ghost-radius-md, 0.375rem);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn-sm:hover {
    transform: scale(1.05);
}

.action-btn-view {
    color: var(--ghost-primary, #64748b);
    border-color: var(--ghost-primary, #64748b);
}

.action-btn-view:hover {
    background: var(--ghost-primary, #64748b);
    color: white;
}

.action-btn-delete {
    color: var(--ghost-error, #ef4444);
    border-color: var(--ghost-error, #ef4444);
}

.action-btn-delete:hover {
    background: var(--ghost-error, #ef4444);
    color: white;
}

/* Pagination Styles - Neutral Glassmorphism */
.page-number {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid var(--ghost-border-muted, #cbd5e1);
    background: var(--ghost-glass-bg, rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(8px);
    color: var(--ghost-body-text, #334155);
    border-radius: var(--ghost-radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 2.5rem;
    text-align: center;
}

.dark .page-number,
html.dark .page-number {
    border-color: var(--ghost-slate-600, #475569);
    background: var(--ghost-surface-card, rgba(30, 41, 59, 0.7));
    color: var(--ghost-slate-300, #cbd5e1);
}

.page-number:hover {
    background: var(--ghost-slate-100, #f1f5f9);
    border-color: var(--ghost-primary, #64748b);
    transform: translateY(-1px);
    box-shadow: var(--ghost-shadow-md);
}

.dark .page-number:hover,
html.dark .page-number:hover {
    background: var(--ghost-slate-700, #334155);
    border-color: var(--ghost-primary, #64748b);
}

.page-number.active {
    background: var(--ghost-gradient-primary, linear-gradient(135deg, #475569, #334155));
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--ghost-shadow-glow-primary, 0 0 20px rgba(100, 116, 139, 0.3));
}

.dark .page-number.active,
html.dark .page-number.active {
    background: var(--ghost-gradient-primary);
    box-shadow: var(--ghost-shadow-glow-primary);
}

#paginationContainer {
    background: var(--ghost-glass-bg, rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: var(--ghost-radius-lg, 0.5rem);
    border: 1px solid var(--ghost-border-subtle);
}

.dark #paginationContainer,
html.dark #paginationContainer {
    background: var(--ghost-surface-panel, rgba(15, 23, 42, 0.85));
}

/* Export Button Styling - Glassmorphism */
.export-menu {
    position: relative;
    display: inline-block;
}

.export-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--ghost-glass-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--ghost-border-muted);
    border-radius: var(--ghost-radius-lg, 0.5rem);
    box-shadow: var(--ghost-shadow-xl);
    z-index: 50;
    min-width: 200px;
    overflow: hidden;
}

.dark .export-dropdown,
html.dark .export-dropdown {
    background: var(--ghost-surface-elevated, rgba(30, 41, 59, 0.95));
    border-color: var(--ghost-border-subtle);
}

.export-dropdown.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.export-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ghost-body-text);
}

.export-option:hover {
    background: var(--ghost-slate-100, #f1f5f9);
}

.dark .export-option:hover,
html.dark .export-option:hover {
    background: var(--ghost-slate-700, #334155);
}

.export-option .ghost-icon {
    width: 20px;
    color: var(--ghost-primary, #64748b);
}

/* Filter Status Badge - Neutral */
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--ghost-primary-rgb, 100, 116, 139), 0.15);
    color: var(--ghost-primary-dark, #475569);
    border-radius: var(--ghost-radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(var(--ghost-primary-rgb), 0.2);
}

.dark .filter-badge,
html.dark .filter-badge {
    background: rgba(var(--ghost-primary-rgb), 0.2);
    color: var(--ghost-primary-light, #94a3b8);
    border-color: rgba(var(--ghost-primary-rgb), 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.25rem;
    }
    
    .data-card {
        padding: 0.75rem;
    }
    
    #jsonView pre {
        font-size: 0.65rem;
    }
}

/* Smooth Transitions */
.view-transition {
    animation: fadeIn 0.2s ease-in;
}

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

/* Loading Skeleton - Neutral */
.skeleton {
    background: linear-gradient(90deg, 
        var(--ghost-slate-200, #e2e8f0) 25%, 
        var(--ghost-slate-100, #f1f5f9) 50%, 
        var(--ghost-slate-200, #e2e8f0) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.dark .skeleton,
html.dark .skeleton {
    background: linear-gradient(90deg, 
        var(--ghost-slate-800, #1e293b) 25%, 
        var(--ghost-slate-700, #334155) 50%, 
        var(--ghost-slate-800, #1e293b) 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Source URL Styling - Neutral */
.source-url {
    color: var(--ghost-primary, #64748b);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.source-url:hover {
    text-decoration: underline;
    color: var(--ghost-primary-dark, #475569);
}

.dark .source-url,
html.dark .source-url {
    color: var(--ghost-primary-light, #94a3b8);
}

.dark .source-url:hover,
html.dark .source-url:hover {
    color: var(--ghost-slate-300, #cbd5e1);
}

/* Platform Badge - Keep brand colors but soften */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--ghost-radius-full, 9999px);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--ghost-shadow-sm);
}

.platform-facebook { background: #1877f2; color: white; }
.platform-linkedin { background: #0a66c2; color: white; }
.platform-twitter { background: #1da1f2; color: white; }
.platform-x { background: #000000; color: white; }
.platform-instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); color: white; }
.platform-reddit { background: #ff4500; color: white; }
.platform-youtube { background: #ff0000; color: white; }
.platform-tiktok { background: #000000; color: white; }
.platform-custom { background: var(--ghost-primary, #64748b); color: white; }

html.light .platform-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Media Preview Styles - Glassmorphism Enhanced */
.media-preview-section {
    margin-bottom: 1rem;
}

.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.media-preview-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: var(--ghost-radius-md, 0.375rem);
    cursor: pointer;
    background: var(--ghost-slate-100, #f1f5f9);
    border: 1px solid var(--ghost-border-subtle);
    transition: all 0.2s ease;
}

.dark .media-preview-item,
html.dark .media-preview-item {
    background: var(--ghost-slate-800, #1e293b);
    border-color: var(--ghost-slate-700, #334155);
}

.media-preview-item:hover {
    transform: scale(1.05);
    box-shadow: var(--ghost-shadow-lg);
    z-index: 10;
    border-color: var(--ghost-primary, #64748b);
}

.media-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview .video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--ghost-gradient-primary, linear-gradient(135deg, #475569, #334155));
    position: relative;
}

.video-thumbnail .ghost-icon {
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
}

.video-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem;
    letter-spacing: 0.05em;
}

.video-label-small {
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.15rem;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-preview-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay .ghost-icon {
    color: white;
    font-size: 1.5rem;
}

.media-preview-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ghost-slate-100, #f1f5f9);
    border: 2px dashed var(--ghost-border-muted, #cbd5e1);
    border-radius: var(--ghost-radius-md, 0.375rem);
    color: var(--ghost-muted-text, #64748b);
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 80px;
}

.dark .media-preview-more,
html.dark .media-preview-more {
    background: var(--ghost-slate-800, #1e293b);
    border-color: var(--ghost-slate-600, #475569);
    color: var(--ghost-slate-400, #94a3b8);
}

.media-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ghost-error-light, #fee2e2);
    color: var(--ghost-error, #ef4444);
}

.dark .media-error,
html.dark .media-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--ghost-error-light, #fca5a5);
}

/* Text Content Styles */
.text-content-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.text-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ghost-slate-600, #475569);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--ghost-slate-200, #e2e8f0);
    padding: 0.25rem 0.5rem;
    border-radius: var(--ghost-radius-sm, 0.25rem);
    display: inline-block;
    width: fit-content;
}

.dark .text-field-label,
html.dark .text-field-label {
    color: var(--ghost-slate-400, #94a3b8);
    background: var(--ghost-slate-700, #334155);
}

.text-field-value {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ghost-heading-text, #1e293b);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.dark .text-field-value,
html.dark .text-field-value {
    color: var(--ghost-slate-200, #e2e8f0);
}

.text-content-detail .text-content-section {
    background: var(--ghost-glass-bg, rgba(248, 250, 252, 0.8));
    padding: 1rem;
    border-radius: var(--ghost-radius-lg, 0.5rem);
    border: 1px solid var(--ghost-border-subtle);
}

.dark .text-content-detail .text-content-section,
html.dark .text-content-detail .text-content-section {
    background: var(--ghost-surface-card, rgba(30, 41, 59, 0.7));
}

/* Media Lightbox - Glassmorphism */
.media-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--ghost-radius-lg, 0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.lightbox-video {
    width: 90vw;
    height: 50.625vw;
    max-width: 1200px;
    max-height: 675px;
    border-radius: var(--ghost-radius-lg, 0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.video-player-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
}

.lightbox-video-player {
    width: 100%;
    max-height: 675px;
    border-radius: var(--ghost-radius-lg, 0.5rem);
    background: #000;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.video-fallback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem;
    background: var(--ghost-glass-bg, rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(16px);
    border-radius: var(--ghost-radius-lg, 0.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.video-player-container.show-fallback .video-fallback {
    display: block;
}

.video-player-container.show-fallback video {
    opacity: 0.3;
}

.video-fallback .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--ghost-gradient-primary, linear-gradient(135deg, #475569, #334155));
    color: white;
    border-radius: var(--ghost-radius-md, 0.5rem);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.video-fallback .btn-primary:hover {
    background: var(--ghost-gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--ghost-shadow-glow-primary);
}

/* Media Gallery - Glassmorphism */
.media-gallery {
    padding: 1rem;
    background: var(--ghost-glass-bg, rgba(248, 250, 252, 0.8));
    backdrop-filter: blur(8px);
    border-radius: var(--ghost-radius-lg, 0.5rem);
    border: 1px solid var(--ghost-border-subtle);
}

.dark .media-gallery,
html.dark .media-gallery {
    background: var(--ghost-surface-card, rgba(30, 41, 59, 0.7));
}

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

.media-gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: var(--ghost-radius-lg, 0.5rem);
    cursor: pointer;
    background: white;
    border: 1px solid var(--ghost-border-muted);
    transition: all 0.2s ease;
}

.dark .media-gallery-item,
html.dark .media-gallery-item {
    background: var(--ghost-slate-800, #1e293b);
    border-color: var(--ghost-slate-600, #475569);
}

.media-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ghost-shadow-lg);
    border-color: var(--ghost-primary, #64748b);
}

.media-gallery-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Data Preview Improvements */
.data-preview {
    max-height: none;
    overflow: visible;
}

/* Responsive adjustments for media */
@media (max-width: 768px) {
    .media-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-video {
        width: 95vw;
        height: 53.4375vw;
    }
}

/* New Card Layout Components - Glassmorphism */
.card-header {
    border-bottom: 1px solid var(--ghost-border-subtle);
    padding-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ghost-heading-text, #1e293b);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.dark .card-title,
html.dark .card-title {
    color: var(--ghost-slate-50, #f8fafc);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-media-preview {
    margin-bottom: 0.5rem;
}

.card-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ghost-muted-text, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.card-field-label .ghost-icon {
    color: var(--ghost-primary, #64748b);
    font-size: 0.875rem;
}

.card-field-value {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ghost-heading-text, #1e293b);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dark .card-field-value,
html.dark .card-field-value {
    color: var(--ghost-slate-200, #e2e8f0);
}

.card-footer {
    border-top: 1px solid var(--ghost-border-subtle);
    padding-top: 1rem;
    margin-top: auto;
}

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

.card-action-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--ghost-border-muted, #cbd5e1);
    color: var(--ghost-muted-text, #64748b);
    border-radius: var(--ghost-radius-md, 0.375rem);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.dark .card-action-btn,
html.dark .card-action-btn {
    border-color: var(--ghost-slate-600, #475569);
    color: var(--ghost-slate-400, #94a3b8);
}

.card-action-btn:hover {
    background: var(--ghost-gradient-primary, linear-gradient(135deg, #475569, #334155));
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
}

/* Empty State Enhancement */
.ghost-empty-icon {
    color: var(--ghost-slate-400, #94a3b8);
}

/* Focus States - Accessibility */
.data-card:focus-visible,
.page-number:focus-visible,
.card-action-btn:focus-visible {
    outline: 2px solid var(--ghost-primary, #64748b);
    outline-offset: 2px;
}
