/**
 * VixViu Core Foundation CSS
 * Consolidated and cleaned based on Content Intel gold standard
 * Professional admin interface foundation for VixViu Core
 */

/* ==========================================================================
   WORDPRESS FOUNDATION INTEGRATION - Foundation Layer
   ========================================================================== */

/* CRITICAL: Hide WordPress notices IMMEDIATELY - no flicker */
html body .notice:not(.vixviu-core-notice-box):not(.vixviu-core-notice),
html body .update-nag,
html body .error:not(.vixviu-core-notice-box),
html body .updated:not(.vixviu-core-notice-box),
html body div.notice,
html body div.update-nag,
html body div.error,
html body div.updated,
.notice,
.update-nag,
.error,
.updated {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* UNIVERSAL WordPress notice hiding - NUCLEAR APPROACH */

/* EMERGENCY JavaScript backup inline */
/* If CSS fails, JavaScript will catch it */

/* Work with WordPress structure for full width - Based on Content Intel pattern */

/* SIMPLIFIED: Single rule for all VixViu plugins */
body[class*="vixviu"] .wrap {
    max-width: none;
    margin: 0;
}

/* Main Container Wrapper - All styles scoped within this */
.vixviu-core-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Roboto", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: transparent;
}

/* Reset WordPress defaults for clean slate - Based on Content Intel pattern */
.vixviu-core-heading-reset {
    margin: 0;
    color: #1a1a1a;
    border: none;
    padding: 0;
}

/* ==========================================================================
   DASHBOARD HEADER - Component Layer (Based on Content Intel)
   ========================================================================== */

.vixviu-core-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    margin: 0 0 0 -20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.vixviu-core-dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.vixviu-core-heading-primary {
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.vixviu-core-dashboard-header p {
    margin: 12px 0 0 0;
    opacity: 0.92;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   NOTIFICATION SYSTEM - Component Layer (Based on Content Intel)
   ========================================================================== */

.vixviu-core-notices-container {
    background: #f8fafc;
    border-radius: 12px;
    margin: 0 0 20px 0;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.vixviu-core-notice-box {
    padding: 16px 20px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid;
    font-weight: 500;
    position: relative;
    animation: vixviu-core-slideIn 0.3s ease-out;
}

@keyframes vixviu-core-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vixviu-core-notice-box.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
}

.vixviu-core-notice-box.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left-color: #22c55e;
    color: #166534;
}

.vixviu-core-notice-box.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #ef4444;
    color: #991b1b;
}

.vixviu-core-notice-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.vixviu-core-notice-box.is-dismissible {
    padding-right: 50px;
}

.vixviu-core-notice-dismiss {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.vixviu-core-notice-dismiss:hover {
        opacity: 1;
}

/* ==========================================================================
   BRIDGE CONTAINER LAYOUT - Component Layer (Based on Content Intel)
   ========================================================================== */

.vixviu-core-layout-bridge-container {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    margin: 20px 0 20px -20px;
}

.vixviu-core-layout-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.vixviu-core-heading-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 0 15px 0;
    padding: 20px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
}


/* Responsive - Single column on mobile */
@media screen and (max-width: 1200px) {
    .vixviu-core-layout-bridge-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   SECTION CONTAINERS - Component Layer (Based on Content Intel)
   ========================================================================== */

.vixviu-core-layout-section-container {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ==========================================================================
   AGNOSTIC CONTAINER CLASSES - Generic Layout Components
   ========================================================================== */




.vixviu-core-layout-block {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vixviu-core-layout-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.vixviu-core-layout-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 16px;
    margin: 0 0 12px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.vixviu-core-layout-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.vixviu-core-content-wrapper {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vixviu-core-content-wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.vixviu-core-content-block {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 16px;
    margin: 0 0 12px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.vixviu-core-content-block:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.vixviu-core-heading-subsection {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 18px 0;
    color: #2d3748;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1e5e9;
    position: relative;
}

.vixviu-core-layout-subsection-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* ==========================================================================
   GRID SYSTEM - Component Layer (Based on Content Intel)
   ========================================================================== */

.vixviu-core-layout-grid {
    display: grid;
    gap: 20px;
    margin: 0;
}

.vixviu-core-layout-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.vixviu-core-layout-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vixviu-core-layout-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==========================================================================
   FORM SYSTEM - Component Layer (Based on Content Intel)
   ========================================================================== */


.vixviu-core-section {
    margin: 0 0 22px 0;
    padding: 0 0 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.vixviu-core-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.vixviu-core-heading-section {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -.5px;
    color: #5b5e97;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1e5e9;
    position: relative;
    text-transform: uppercase; 
}

.vixviu-core-heading-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.vixviu-core-form-row {
    margin: 0 0 10px 0;
    position: relative;
}

.vixviu-core-form-row label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.vixviu-core-form-row input[type="text"],
.vixviu-core-form-row input[type="email"],
.vixviu-core-form-row input[type="url"],
.vixviu-core-form-row input[type="date"],
.vixviu-core-form-row textarea,
.vixviu-core-form-row select {
    width: 100%;
    padding: 4px 16px;
    border: 1.5px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.vixviu-core-form-row input:focus,
.vixviu-core-form-row textarea:focus,
.vixviu-core-form-row select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.vixviu-core-form-row input[readonly] {
    background: #f8fafc;
    color: #6b7280;
}

.vixviu-core-form-row textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.vixviu-core-form-row .description {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 6px;
    font-style: italic;
}

/* Enhanced Form Elements from Content Intel */
.vixviu-core-form-row input[type="checkbox"],
.vixviu-core-form-row input[type="radio"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.vixviu-core-form-row input[type="checkbox"]:focus,
.vixviu-core-form-row input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Form Validation States from Content Intel */
.vixviu-core-form-row input.error,
.vixviu-core-form-row textarea.error,
.vixviu-core-form-row select.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.vixviu-core-form-row input.success,
.vixviu-core-form-row textarea.success,
.vixviu-core-form-row select.success {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}

.vixviu-core-form-row input.warning,
.vixviu-core-form-row textarea.warning,
.vixviu-core-form-row select.warning {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
}

/* Form Row Variations from Content Intel */
.vixviu-core-form-row.compact {
    margin-bottom: 12px;
}

.vixviu-core-form-row.compact label {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.vixviu-core-form-row.compact input,
.vixviu-core-form-row.compact select,
.vixviu-core-form-row.compact textarea {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Form Group Styling from Content Intel */
.vixviu-core-form-group {
    background: #f8fafc;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.vixviu-core-heading-form-group {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e5e9;
}

/* ==========================================================================
   AGNOSTIC HEADING CLASSES - Generic Typography Components
   ========================================================================== */

.vixviu-core-heading-container {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -.5px;
    color: #5b5e97;
    margin: 0;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.vixviu-core-heading-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.vixviu-core-heading-block {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.vixviu-core-heading-block::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.vixviu-core-heading-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.vixviu-core-heading-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* ==========================================================================
   BUTTON STYLING - Component Layer (Based on Content Intel)
   ========================================================================== */

.vixviu-core-button, 
.vixviu-core-button-primary, 
.vixviu-core-button-secondary {
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    border: 1.5px solid !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;  
    letter-spacing: -.3px;
}

.vixviu-core-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

.vixviu-core-button-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    border-color: #5a67d8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.vixviu-core-button-secondary, 
.vixviu-core-button {
    background: white !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.vixviu-core-button-secondary:hover, 
.vixviu-core-button:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    transform: translateY(-1px) !important;
}

/* Enhanced Button Variants from Content Intel */
.vixviu-core-button-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: #22c55e !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3) !important;
}

.vixviu-core-button-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border-color: #16a34a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

.vixviu-core-button-danger {
    background: linear-gradient(135deg, #a53c3c 0%, #d05454 100%) !important;
    border-color: #bc4545 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.vixviu-core-button-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* Button Sizing System from Content Intel */
.vixviu-core-button-small {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

.vixviu-core-button-large {
    padding: 16px 28px !important;
    font-size: 1.1rem !important;
}

/* Button with Icons from Content Intel */
.vixviu-core-button .vixviu-core-dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* Generic Dashicons Styling - Foundation Class */
.vixviu-core-dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    display: inline-block;
    vertical-align: middle;
}

/* Button States from Content Intel */
.vixviu-core-button:disabled,
.vixviu-core-button-primary:disabled,
.vixviu-core-button-secondary:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ==========================================================================
   INFO & HELP SECTIONS - Component Layer (Based on Content Intel)
   ========================================================================== */

.vixviu-core-layout-info-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 5px 0;
}

.vixviu-core-layout-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-bottom: 0px solid #f1f5f9;
}

.vixviu-core-layout-info-item:last-child {
    border-bottom: none;
}

.vixviu-core-layout-info-label {
    font-weight: 500;
    color: #4a5568;
    font-size: .85rem;
    letter-spacing: -.3px;
}

.vixviu-core-layout-info-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.vixviu-core-layout-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0px;
}

.vixviu-core-layout-export-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   STATUS SYSTEM - Component Layer (Based on Content Intel)
   ========================================================================== */

/* System Status Container - Foundation Class */
.vixviu-core-system-status {
    margin: 10px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vixviu-core-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vixviu-core-status-success {
    color: #22c55e;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

.vixviu-core-status-error {
    color: #ef4444;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

.vixviu-core-status-warning {
    color: #f59e0b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

.vixviu-core-status-info {
    color: #3b82f6;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ==========================================================================
   NOTIFICATION SYSTEM - Enhanced with Content Intel Patterns
   ========================================================================== */

.vixviu-core-notice {
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 8px;
    border-left: 4px solid;
    font-weight: 500;
    position: relative;
    animation: vixviu-core-notice-slide-in 0.3s ease-out;
}

@keyframes vixviu-core-notice-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vixviu-core-notice.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
}

.vixviu-core-notice.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left-color: #22c55e;
    color: #166534;
}

.vixviu-core-notice.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #ef4444;
    color: #991b1b;
}

.vixviu-core-notice.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.vixviu-core-notice.is-dismissible {
    padding-right: 50px;
}

.vixviu-core-notice-dismiss {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    color: inherit;
}

.vixviu-core-notice-dismiss:hover {
    opacity: 1;
}

/* Toast Notifications from Content Intel */
.vixviu-core-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    border-left: 4px solid;
    z-index: 10001;
    max-width: 400px;
    animation: vixviu-core-toast-slide-in 0.3s ease-out;
}

@keyframes vixviu-core-toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vixviu-core-toast.success {
    border-left-color: #22c55e;
}

.vixviu-core-toast.error {
    border-left-color: #ef4444;
}

.vixviu-core-toast.warning {
    border-left-color: #f59e0b;
}

.vixviu-core-toast.info {
    border-left-color: #3b82f6;
}



/* ==========================================================================
   DASHBOARD SPECIFIC STYLES - Component Layer
   ========================================================================== */

/* Dashboard Header Actions */
.vixviu-core-dashboard-header-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vixviu-core-version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

/* Dashboard Subtitle */
.vixviu-core-dashboard-subtitle {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* ==========================================================================
   TABLE SYSTEM - Enhanced with Content Intel Patterns
   ========================================================================== */

.vixviu-core-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e5e9;
}

.vixviu-core-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #2d3748;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vixviu-core-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #4a5568;
    font-size: 0.9rem;
    vertical-align: top;
}

.vixviu-core-table tr:hover {
    background: #f8fafc;
}

.vixviu-core-table tr:last-child td {
    border-bottom: none;
}

/* Table Status Badges from Content Intel */
.vixviu-core-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vixviu-core-table .status-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.vixviu-core-table .status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.vixviu-core-table .status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.vixviu-core-table .status-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Table Actions from Content Intel */
.vixviu-core-table .table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vixviu-core-table .table-actions .vixviu-core-button {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: auto;
}

/* Responsive Table from Content Intel */
@media screen and (max-width: 768px) {
    .vixviu-core-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .vixviu-core-table th,
    .vixviu-core-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN - Utility Layer
   ========================================================================== */

@media screen and (max-width: 1200px) {
    .vixviu-core-layout-bridge-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .vixviu-core-dashboard-header {
        margin: -10px -10px 20px -10px;
        padding: 20px 15px;
    }
    
    .vixviu-core-heading-primary {
        font-size: 1.5rem;
    }
    
    .vixviu-core-layout-section-container,
    .vixviu-core-form-panel,
    .vixviu-core-layout-panel {
        padding: 16px;
    }
    
    .vixviu-core-layout-info-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .vixviu-core-layout-actions-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS - Utility Layer
   ========================================================================== */

/* Focus management for keyboard navigation */
.vixviu-core-wrapper button:focus,
.vixviu-core-wrapper input:focus,
.vixviu-core-wrapper textarea:focus,
.vixviu-core-wrapper select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .vixviu-core-card {
        border-width: 2px;
    }
    
    .vixviu-core-form-row input,
    .vixviu-core-form-row textarea,
    .vixviu-core-form-row select {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .vixviu-core-wrapper *,
    .vixviu-core-wrapper *::before,
    .vixviu-core-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   METRICS DISPLAY - Component Layer
   ========================================================================== */

.vixviu-core-layout-metrics {
    /* Simple container for metric displays */
    display: block;
    line-height: 1.6;
}

/* ==========================================================================
   COLLAPSIBLE SECTIONS - Component Layer
   ========================================================================== */

.vixviu-core-collapsible-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vixviu-core-collapsible-section details {
    padding: 15px;
}

.vixviu-core-collapsible-section summary {
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vixviu-core-collapsible-section summary:hover {
    color: #667eea;
}

/* ==========================================================================
   CONTROLS CONTAINER - Component Layer  
   ========================================================================== */

.vixviu-core-layout-controls {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ==========================================================================
   LOADING STATES - Enhanced with Content Intel Patterns
   ========================================================================== */

.vixviu-core-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: vixviu-core-spin 1s linear infinite;
    margin-right: 12px;
}

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

.vixviu-core-loading-text {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

.vixviu-core-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.vixviu-core-loading-overlay.active {
    display: flex;
}

.vixviu-core-loading-content {
    text-align: center;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}



/* ==========================================================================
   BACKDROP SYSTEM - Component Layer
   ========================================================================== */

.vixviu-core-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vixviu-core-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   MODAL SYSTEM - Agnostic Foundation Classes (Based on Mapping Analysis)
   ========================================================================== */

/* Modal System Wrappers */


/* Agnostic Layout Components */





.vixviu-core-layout-progress-text {
    text-align: center;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.vixviu-core-layout-progress-log {
    max-height: 200px;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Fira Code', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.vixviu-core-layout-progress-log-item {
    margin-bottom: 8px;
    padding: 4px 0;
    color: #4a5568;
}

.vixviu-core-layout-progress-log-item.success {
    color: #22c55e;
    font-weight: 600;
}

.vixviu-core-layout-progress-log-item.error {
    color: #ef4444;
    font-weight: 600;
}

.vixviu-core-layout-progress-log-item.warning {
    color: #f59e0b;
    font-weight: 600;
}

/* Agnostic Button Components */
.vixviu-core-button-submit {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 1rem;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vixviu-core-button-submit:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.vixviu-core-button-cancel {
    background: #eee;
    color: #333;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vixviu-core-button-cancel:hover {
    background: #ddd;
    transform: translateY(-1px);
}

/* ==========================================================================
   AGNOSTIC LAYOUT COMPONENTS - Generic Layout Components
   ========================================================================== */

.vixviu-core-layout-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.vixviu-core-layout-content {
    /* Generic content container */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100%;
}

.vixviu-core-layout-message {
    /* Generic message text */
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}




/* ==========================================================================
   DIVIDING LINES - Agnostic Foundation Classes
   ========================================================================== */

.vixviu-core-divider {
    border-bottom: 1.5px solid #e1e5e9;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* ==========================================================================
   FLEX LAYOUT - Agnostic Foundation Classes
   ========================================================================== */

.vixviu-core-flex-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

/* ==========================================================================
   FORMS SYSTEM - Agnostic Foundation Classes (Based on Implementation Plan)
   ========================================================================== */

/* Form-Specific Classes */
.vixviu-core-form-info-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.vixviu-core-form-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    margin: 0 0 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* Agnostic Classes */
.vixviu-core-slider-container {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.vixviu-core-dropdown {
    min-width: 150px;
}

.vixviu-core-row-spacing {
    margin-top: 10px;
}

.vixviu-core-slider-input {
    width: 80px;
}

.vixviu-core-color-input {
    width: 50px;
}

.vixviu-core-label-small {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.vixviu-core-text-tiny {
    font-size: 0.7rem;
    color: #6b7280;
}

.vixviu-core-text-monospace {
    font-family: 'Monaco', 'Consolas', monospace;
    color: #6b7280;
}

.vixviu-core-image-preview {
    max-width: 200px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ==========================================================================
   NAVIGATION SYSTEM - Generic Foundation Classes
   ========================================================================== */

/* Generic Tab Navigation */
.vixviu-core-nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.vixviu-core-tabs-top .vixviu-core-nav-tabs {
    order: 1;
}

.vixviu-core-tabs-bottom .vixviu-core-nav-tabs {
    order: 2;
}

.vixviu-core-nav-tabs .vixviu-core-button {
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
}

.vixviu-core-nav-tabs .vixviu-core-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-bottom-color: white;
}

/* Generic Sidebar Navigation */
.vixviu-core-nav-sidebar {
    display: flex;
    gap: 16px;
}

.vixviu-core-sidebar-toggle {
    background: #f8fafc;
    border: 1px solid #e1e5e9;
}

.vixviu-core-sidebar-item {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
}

.vixviu-core-sidebar-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Generic Slide Navigation */
.vixviu-core-slide-up,
.vixviu-core-slide-down,
.vixviu-core-slide-left,
.vixviu-core-slide-right {
    transition: transform 0.3s ease;
}

.vixviu-core-slide-up:hover {
    transform: translateY(-2px);
}

.vixviu-core-slide-down:hover {
    transform: translateY(2px);
}

.vixviu-core-slide-left:hover {
    transform: translateX(-2px);
}

.vixviu-core-slide-right:hover {
    transform: translateX(2px);
}

/* Generic Backflip Navigation */
.vixviu-core-nav-backflip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vixviu-core-flip-btn {
    transition: transform 0.3s ease;
}

.vixviu-core-flip-btn:hover {
    transform: rotateY(180deg);
}

/* ==========================================================================
   MODAL SYSTEM - Flexible Sizing and Layout
   ========================================================================== */

/* Modal Wrapper - Fullscreen Overlay */
.vixviu-core-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vixviu-core-modal-wrapper.open {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Container - Flexible Sizing */
.vixviu-core-layout-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0;
    padding: 20px; 
}

/* Modal Size Classes */
.vixviu-core-modal-size-auto .vixviu-core-layout-container {
    width: auto;
    height: auto;
    min-width: 300px;
    min-height: 200px;
}

.vixviu-core-modal-size-small .vixviu-core-layout-container {
    width: 400px;
    height: auto;
    min-height: 200px;
}

.vixviu-core-modal-size-medium .vixviu-core-layout-container {
    width: 600px;
    height: auto;
    min-height: 300px;
}

.vixviu-core-modal-size-large .vixviu-core-layout-container {
    width: 800px;
    height: auto;
    min-height: 400px;
}

.vixviu-core-modal-size-fullscreen .vixviu-core-layout-container {
    width: 95vw;
    height: 95vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
}

/* Modal Header */
.vixviu-core-layout-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.vixviu-core-layout-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.vixviu-core-layout-close:hover {
    color: #000;
}

/* Modal Content */
.vixviu-core-form-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-height: 0;
}

/* Modal Footer */
.vixviu-core-layout-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Progress Modal Specific */
.vixviu-core-layout-progress-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 90vw;
    max-height: 90vh;
    margin: 20px;
    width: 500px;
    height: 400px;
}

.vixviu-core-layout-progress-text {
    padding: 20px 20px 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex-shrink: 0;
}

.vixviu-core-progress-bar {
    margin: 0 20px 20px 20px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.vixviu-core-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    width: 0%;
}

.vixviu-core-layout-progress-log {
    flex: 1;
    padding: 0 20px 20px 20px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 0 20px 20px 20px;
    max-height: 200px;
}

.vixviu-core-layout-progress-log-item {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.vixviu-core-layout-progress-log-item:last-child {
    border-bottom: none;
}

.vixviu-core-layout-progress-log-item.success {
    color: #28a745;
    background: #d4edda;
}

.vixviu-core-layout-progress-log-item.error {
    color: #dc3545;
    background: #f8d7da;
}

.vixviu-core-layout-progress-log-item.warning {
    color: #ffc107;
    background: #fff3cd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vixviu-core-modal-size-small .vixviu-core-layout-container,
    .vixviu-core-modal-size-medium .vixviu-core-layout-container,
    .vixviu-core-modal-size-large .vixviu-core-layout-container {
        width: 95vw;
        height: auto;
        margin: 10px;
    }
    
    .vixviu-core-layout-progress-content {
        width: 95vw;
        height: 80vh;
        margin: 10px;
    }
    
    .vixviu-core-form-panel {
        padding: 15px;
    }
    
    .vixviu-core-layout-header {
        padding: 15px 15px 0 15px;
    }
    
    .vixviu-core-layout-footer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .vixviu-core-modal-wrapper {
        padding: 10px;
    }
    
    .vixviu-core-layout-container,
    .vixviu-core-layout-progress-content {
        width: 100%;
        height: auto;
        margin: 0;
        border-radius: 4px;
    }
    
    .vixviu-core-form-panel {
        padding: 10px;
    }
    
    .vixviu-core-layout-header {
        padding: 10px 10px 0 10px;
    }
    
    .vixviu-core-layout-footer {
        padding: 0 10px 10px 10px;
        flex-direction: column;
    }
}


/* ==========================================================================
   DEBUG SYSTEM - Agnostic Foundation Classes (Based on Mapping Analysis)
   ========================================================================== */

   .vixviu-core-wrapper-debug { margin: 20px 0 0 -20px; }


/* ==========================================================================
   COMMENTED OUT SECTIONS - Moved to bottom for reference
   ========================================================================== */

/* COMMENTED OUT: Redundant selectors causing layout issues
body.tools_page_vixviu-core .wrap,
body.vixviu-core-page .wrap,
body[class*="vixviu-core"] .wrap,
body[class*="vixviu"] .wrap {
    max-width: none;
    margin: 10px 0 0 0;
}
*/

/* Enhanced Card System from Content Intel - COMMENTED OUT: Replaced with agnostic classes */
/*
.vixviu-core-layout-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vixviu-core-layout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.vixviu-core-layout-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.vixviu-core-heading-card {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.vixviu-core-heading-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
*/