/* Frontend Display Styles */
.comparison-table-container {
    margin: 20px 0;
    background: #ffffff !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.comparison-table-display {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background: #ffffff !important;
}

.comparison-table-display thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table-display th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #000000 !important;
    font-size: 15px;
    border-right: 1px solid #e5e7eb;
}

.comparison-table-display th:last-child {
    border-right: none;
}

.comparison-table-display th:first-child {
    width: 60%;
    min-width: 300px;
}

.comparison-table-display th:not(:first-child) {
    text-align: center;
    width: 20%;
    min-width: 120px;
}

.comparison-table-display tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.comparison-table-display tbody tr:hover {
    background-color: #f9fafb;
}

.comparison-table-display tbody tr:last-child {
    border-bottom: none;
}

.comparison-table-display td {
    padding: 16px 20px;
    border-right: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #000000 !important;
}

.comparison-table-display td:last-child {
    border-right: none;
}

.comparison-table-display .feature-name {
    color: #000000 !important;
    font-weight: 500;
    line-height: 1.5;
}

.comparison-table-display .checkbox-display {
    text-align: center;
    position: relative;
}

.comparison-table-display .text-display {
    text-align: center;
    font-weight: 500;
    color: #000000 !important;
    padding: 8px;
}

.comparison-table-display .checkmark {
    display: inline-block;
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    background: #ecfdf5;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-table-display {
        font-size: 13px;
    }
    
    .comparison-table-display th,
    .comparison-table-display td {
        padding: 12px 16px;
    }
    
    .comparison-table-display th:first-child {
        min-width: 200px;
    }
    
    .comparison-table-display th:not(:first-child) {
        min-width: 80px;
    }
}

@media (max-width: 600px) {
    .comparison-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table-display {
        min-width: 500px;
    }
}

/* Theme override protection - ensure text is always visible */
.comparison-table-container,
.comparison-table-container *,
.comparison-table-display,
.comparison-table-display *,
.comparison-table-display th,
.comparison-table-display td,
.comparison-table-display thead,
.comparison-table-display tbody,
.comparison-table-display tr {
    color: #000000 !important;
}

.comparison-table-container {
    background: #ffffff !important;
}

.comparison-table-display .checkmark {
    color: #10b981 !important;
    background: #ecfdf5 !important;
}

/* Ultra-aggressive text color forcing */
.comparison-table-display th,
.comparison-table-display td,
.comparison-table-display .feature-name,
.comparison-table-display .text-display {
    color: #000000 !important;
    text-shadow: none !important;
}

.comparison-table-display thead {
    background: #f8f9fa !important;
}

/* Tighter spacing for 2-column tables */
.comparison-table-display th:nth-child(2):last-child,
.comparison-table-display td:nth-child(2):last-child {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Reduce overall padding when table has fewer columns */
.comparison-table-display.compact th,
.comparison-table-display.compact td {
    padding: 12px 16px !important;
}

/* Nuclear option - override any possible white text from themes */
.comparison-table-container .comparison-table-display th,
.comparison-table-container .comparison-table-display td,
.comparison-table-container .comparison-table-display .feature-name,
.comparison-table-container .comparison-table-display .text-display,
body .comparison-table-container th,
body .comparison-table-container td,
html body .comparison-table-container th,
html body .comparison-table-container td,
.comparison-table-container *:not(.checkmark),
body .comparison-table-container *:not(.checkmark),
html body .comparison-table-container *:not(.checkmark) {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Absolute override - maximum CSS specificity */
.comparison-table-container table th,
.comparison-table-container table td {
    color: #000000 !important;
}

/* Override any theme that sets white text */
[class*="comparison-table"] th,
[class*="comparison-table"] td,
[class*="comparison-table"] * {
    color: #000000 !important;
}

/* Ultimate override - block all inheritance */
.comparison-table-container,
.comparison-table-container *,
.comparison-table-display,
.comparison-table-display * {
    color: #000000 !important;
    background-color: initial !important;
}

.comparison-table-container {
    background-color: #ffffff !important;
}

.comparison-table-display thead {
    background-color: #f8f9fa !important;
}

/* Alternative table style for more minimal look */
.comparison-table-display.minimal {
    border: none;
    box-shadow: none;
}

.comparison-table-display.minimal th {
    background: transparent;
    border-bottom: 2px solid #e5e7eb;
    border-right: none;
    padding-bottom: 12px;
    color: #000000 !important;
}

.comparison-table-display.minimal td {
    border-right: none;
    border-bottom: 1px solid #f3f4f6;
    color: #000000 !important;
}

.comparison-table-display.minimal tbody tr:hover {
    background: transparent;
} 