/* ==========================================================================
   LAW COMPARISON TOOL
   ========================================================================== */

.ul-law-comparison-tool {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ul-compare-header {
    text-align: center;
    margin-bottom: 50px;
}

.ul-compare-header h1 {
    font-size: 36px;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.ul-compare-subtitle {
    font-size: 18px;
    color: #555;
}

/* State Selectors */
.ul-compare-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: end;
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ul-state-selector-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
    font-size: 16px;
}

.ul-compare-state-select {
    /* Reset everything */
    all: revert;
    
    /* Then apply only essentials */
    width: 100%;
    min-width: 300px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 400;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
}

/* Force text visibility in all states */
.ul-compare-state-select,
.ul-compare-state-select option {
    color: #000000 !important;
    background-color: #ffffff !important;
}

.ul-compare-state-select option {
    color: #1e293b !important;
    background: white !important;
    padding: 10px;
}

.ul-compare-state-select:focus {
    outline: none;
    border-color: #AADDFF;
    box-shadow: 0 0 0 3px rgba(170, 221, 255, 0.3);
}

.ul-compare-state-select:focus {
    outline: none;
    border-color: #AADDFF;
    box-shadow: 0 0 0 3px rgba(170, 221, 255, 0.3);
}

.ul-compare-vs {
    font-size: 28px;
    font-weight: 900;
    color: #dc2626;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 20px;
    padding-bottom: 10px;
}

/* Topic Selector */
.ul-compare-topic-selector {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: #f8fafc;
    border-radius: 16px;
}

.ul-compare-topic-selector h3 {
    margin: 0 0 30px 0;
    font-size: 24px;
    color: #1e293b;
}

.ul-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.ul-compare-topic-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ul-compare-topic-btn:hover {
    border-color: #AADDFF;
    background: #f0f9ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(170, 221, 255, 0.3);
}

.ul-compare-topic-btn .ul-topic-icon {
    font-size: 36px;
}

.ul-compare-topic-btn .ul-topic-label {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* Comparison Display */
.ul-comparison-display {
    margin-top: 60px;
}

.ul-compare-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ul-compare-column {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    position: relative;
}

.ul-compare-locked {
    border: 3px solid #10b981;
}

.ul-compare-state-header {
    background: linear-gradient(135deg, #AADDFF 0%, #88BBEE 100%);
    color: #1e293b;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.ul-compare-state-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.ul-compare-content {
    padding: 30px;
}

/* SLOT MACHINE ANIMATION */
.ul-slot-machine {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    border-radius: 16px;
}

.ul-slot-reel {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border: 4px solid #fbbf24;
    border-radius: 16px;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 8px 30px rgba(0, 0, 0, 0.5);
}

.ul-slot-item {
    font-size: 80px;
    line-height: 200px;
    text-align: center;
    width: 100%;
}

/* Spinning Animation */
.ul-slot-spinning {
    animation: slotSpin 0.1s linear infinite;
}

@keyframes slotSpin {
    0% { transform: translateY(0); }
    33% { transform: translateY(-200px); }
    66% { transform: translateY(-400px); }
    100% { transform: translateY(0); }
}

/* Stopping Animation */
.ul-slot-stopping {
    animation: slotStop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slotStop {
    0% { transform: translateY(0); }
    50% { transform: translateY(-600px); }
    100% { transform: translateY(0); }
}

.ul-slot-text {
    margin-top: 30px;
    font-size: 20px;
    color: #fbbf24;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1s ease-in-out infinite;
}

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

/* Mobile Responsive */
@media (max-width: 968px) {
    .ul-compare-columns {
        grid-template-columns: 1fr;
    }
    
    .ul-compare-selectors {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ul-compare-vs {
        text-align: center;
        padding: 10px 0;
    }
}

/* Comparison Rows */
.ul-comparison-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ul-category-header {
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #e5e7eb;
    color: #1e293b;
    font-size: 20px;
}

.ul-category-header:first-child {
    margin-top: 0;
}

/* Topic Cards */
.ul-topic-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.ul-topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.ul-topic-card-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    flex: 1;
}

.ul-status-icon {
    font-size: 24px;
    margin-left: 10px;
}

/* Status Colors */
.ul-topic-same {
    border-color: #10b981;
    background: #f0fdf4;
}

.ul-topic-different {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ul-topic-only-left,
.ul-topic-only-right {
    border-color: #ef4444;
    background: #fef2f2;
}

.ul-topic-missing {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 30px 20px;
}

/* Topic Details */
.ul-topic-detail {
    margin: 15px 0;
}

.ul-topic-detail strong {
    display: block;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.ul-topic-detail ul {
    margin: 0;
    padding-left: 20px;
}

.ul-topic-detail li {
    margin: 5px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.ul-statute-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.ul-statute-link strong {
    color: #1e40af;
    font-size: 14px;
}

.ul-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Smart Comparison Layout */
.ul-smart-comparison {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ul-comparison-section-title {
    font-size: 28px;
    color: #1e293b;
    margin: 40px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #e5e7eb;
}

.ul-comparison-section-title:first-child {
    margin-top: 0;
}

/* Side by Side Grid */
.ul-side-by-side-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ul-comparison-row {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ul-comparison-row.ul-identical {
    border: 2px solid #10b981;
}

.ul-comparison-row.ul-has-differences {
    border: 2px solid #f59e0b;
}

.ul-comparison-row-header {
    background: linear-gradient(135deg, #AADDFF 0%, #88BBEE 100%);
    color: #1e293b;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.ul-comparison-row-header h3 {
    margin: 0;
    font-size: 20px;
}

.ul-status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.ul-comparison-columns-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #e5e7eb;
}

.ul-comparison-side {
    background: white;
    padding: 30px;
}

.ul-comparison-side h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1e40af;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.ul-compact-section {
    margin-bottom: 20px;
}

.ul-compact-section strong {
    display: block;
    color: #374151;
    margin-bottom: 10px;
    font-size: 15px;
}

.ul-compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ul-compact-item {
    padding: 10px 12px;
    background: #f9fafb;
    border-left: 3px solid #e5e7eb;
    border-radius: 4px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.ul-item-label {
    font-weight: 600;
    color: #1e293b;
}

.ul-compact-section > div {
    padding: 6px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.ul-highlight-diff {
    background: #fef3c7 !important;
    border-left-color: #f59e0b !important;
    border-left-width: 4px !important;
}

.ul-statute-code {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #1e40af;
    font-weight: 600;
    font-size: 14px;
}

.ul-more-items {
    color: #6b7280;
    font-style: italic;
    font-size: 13px;
}

/* Unique Topics */
.ul-unique-topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.ul-unique-column h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.ul-unique-count {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #991b1b;
    font-weight: 600;
    font-size: 15px;
}

.ul-unique-topic {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #991b1b;
    font-weight: 500;
    font-size: 14px;
}

.ul-more-unique {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    font-size: 14px;
}

.ul-no-unique {
    color: #6b7280;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

@media (max-width: 968px) {
    .ul-comparison-columns-inner {
        grid-template-columns: 1fr;
    }
    
    .ul-unique-topics-grid {
        grid-template-columns: 1fr;
    }
}

/* Compare Again Section */
.ul-compare-again-section {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    background: #f0f8ff;
    border: 2px solid #AADDFF;
    border-radius: 16px;
}

.ul-compare-again-btn {
    background: #AADDFF;
    color: #000;
    border: 2px solid #77bbee;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 221, 255, 0.4);
}

.ul-compare-again-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(170, 221, 255, 0.6);
    background: #77bbee;
}

.ul-compare-again-btn:active {
    transform: translateY(-1px);
}

/* Brand Badge */
.ul-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f8ff;
    border: 2px solid #AADDFF;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(170, 221, 255, 0.3);
}

.ul-brand-mole {
    font-size: 24px;
}

.ul-brand-text {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}


/* Topic Comparison Cards */
.ul-comparison-stats {
    background: linear-gradient(135deg, #AADDFF 0%, #88BBEE 100%);
    color: #1e293b;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.ul-topic-comparison-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.ul-topic-comparison-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ul-card-same {
    border-color: #10b981;
    background: #f0fdf4;
}

.ul-card-different {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ul-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.ul-card-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 17px;
}

.ul-card-status {
    font-size: 20px;
}

.ul-unique-section-header {
    color: #dc2626;
    font-size: 16px;
    margin: 30px 0 15px 0;
    padding: 10px;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
}

.ul-unique-topic-small {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: #991b1b;
    font-size: 13px;
}

.ul-more-unique-small {
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 8px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    font-size: 13px;
}




/* Force dropdown selected text to be visible */
.ul-compare-state-select:not(:focus) {
    color: #1e293b !important;
}

.ul-compare-state-select:focus {
    color: #1e293b !important;
}

/* Make sure all select states show text */
.ul-compare-state-select,
.ul-compare-state-select:hover,
.ul-compare-state-select:active,
.ul-compare-state-select:visited {
    color: #1e293b !important;
    opacity: 1 !important;
}

/* Override any theme that might be hiding it */
select#ul-compare-state1,
select#ul-compare-state2 {
    color: #1e293b !important;
    background-color: white !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* State Display (shows selected state above dropdown) */
.ul-state-display {
    background: #f0f8ff;
    border: 2px solid #AADDFF;
    color: #1a1a2e;
    padding: 15px 20px;
    border-radius: 999px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(170, 221, 255, 0.3);
}

.ul-state-display strong {
    font-size: 18px;
    color: #1a1a2e;
}
