/* Hospital Residency Ranker Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding-top: 60px; /* Space for fixed nav */
}

/* Navigation Styles */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-left: 1rem;
}

.nav-spacer {
    flex: 1;
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 2rem 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hidden {
    display: none;
}

h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
}

/* Setup Phase Styles */
.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#hospitalInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#hospitalInput:focus {
    outline: none;
    border-color: #667eea;
}

#addHospital {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#addHospital:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.hospital-list {
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
}

.hospital-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.hospital-item .hospital-name {
    font-weight: 600;
    color: #333;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
}

.setup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#startRanking, #loadSample, #viewWeightedFromSetup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#startRanking:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#startRanking:hover:not(:disabled), #loadSample:hover, #viewWeightedFromSetup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Progress Bar */
.progress-bar {
    position: relative;
    background: #e9ecef;
    border-radius: 25px;
    height: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 25px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* Comparison Phase Styles */
.comparison-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hospital-option {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hospital-option:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.hospital-option .hospital-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.vs-divider {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.comparison-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-actions button {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comparison-actions button:hover {
    background: #667eea;
    color: white;
}

/* Results Phase Styles */
.ranking-list {
    margin-bottom: 2rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
    transition: transform 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
}

.ranking-position {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-right: 1rem;
    min-width: 40px;
}

.ranking-hospital-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.ranking-score {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.results-actions button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.results-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Notes Button */
.notes-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.notes-btn:hover {
    background: #667eea;
    color: white;
}

.hospital-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.hospital-item-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.hospital-item-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-indicator {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-left: 0.5rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Notes Tabs */
.notes-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #667eea;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tab-content {
    padding: 2rem;
}

.tab-content.hidden {
    display: none !important;
}

/* Program Info Styles */
.program-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
}

.info-section h4 {
    margin: 0 0 1rem 0;
    color: #667eea;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.info-content {
    line-height: 1.6;
}

.info-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.info-value {
    color: #666;
    flex: 1;
}

/* Personal Notes Styles */
.personal-notes h4 {
    margin: 0 0 1rem 0;
    color: #667eea;
    font-size: 1.1rem;
}

#personalNotes {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#personalNotes:focus {
    outline: none;
    border-color: #667eea;
}

.notes-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.save-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.clear-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #dc3545;
    color: white;
}

/* Comparison cards with notes indicator */
.hospital-option {
    position: relative;
}

.comparison-notes-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comparison-notes-btn:hover {
    background: #667eea;
    color: white;
}

.has-notes {
    background: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Weighted Decision Styles */
.weighted-phase h3 {
    color: #667eea;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.categories-section, .scoring-section, .weighted-results-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.add-category {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#categoryInput {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

#addCategory {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-name {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.category-weight-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.weight-slider {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.weight-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
}

.weight-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.weight-value {
    font-weight: bold;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

.category-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.remove-category-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.scoring-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.hospital-scoring-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hospital-name-scoring {
    font-weight: 600;
    color: #333;
}

.category-scores {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.score-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-label {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.heart-rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.heart-icon {
    font-size: 1.2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.heart-icon:hover {
    transform: scale(1.1);
}

.heart-icon.filled {
    color: #e91e63;
}

.heart-icon.hover-preview {
    color: #f8bbd9;
}

.score-display {
    margin-left: 8px;
    font-weight: bold;
    color: #667eea;
    min-width: 30px;
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.weight-indicator {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
}

.weight-indicator.invalid {
    color: #dc3545;
}

.weighted-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weighted-ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.weighted-rank-position {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin-right: 1rem;
    min-width: 40px;
}

.weighted-hospital-info {
    flex: 1;
}

.weighted-hospital-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.weighted-score-breakdown {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.weighted-total-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.scoring-controls, .weighted-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.scoring-controls button, .weighted-actions button, .category-actions button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.scoring-controls button:hover, .weighted-actions button:hover, .category-actions button:hover {
    transform: translateY(-2px);
}

#calculateWeightedRanking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#clearAllScores {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vs-divider {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        justify-self: center;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .setup-actions, .comparison-actions, .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .notes-actions {
        flex-direction: column;
    }
    
    .hospital-scoring-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .category-scores {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .heart-rating {
        justify-content: space-between;
    }
    
    .heart-icon {
        font-size: 1rem;
    }
    
    .top-nav {
        padding: 0.5rem 1rem;
    }
    
    .nav-title {
        font-size: 1rem;
        margin-left: 0.5rem;
    }
}

/* Comparison View Styles */
.comparison-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ranking-column {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.ranking-column h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.ranking-info p {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
}

.ranking-display {
    max-height: 400px;
    overflow-y: auto;
}

.comparison-ranking-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comparison-rank-position {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
    margin-right: 1rem;
    min-width: 30px;
}

.comparison-hospital-name {
    font-weight: 600;
    color: #333;
    flex: 1;
    font-size: 0.95rem;
}

.comparison-score {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.comparison-analysis {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #28a745;
}

.comparison-analysis h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.insights-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.insight-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.insight-description {
    color: #666;
    font-size: 0.95rem;
}

.comparison-view-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-view-actions button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.comparison-view-actions button:hover {
    transform: translateY(-2px);
}

/* Nikki News Styles */
.nikki-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.nikki-news-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.nikki-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* Nikki Modal Styles */
.nikki-modal {
    max-width: 700px;
}

.nikki-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.nikki-news-content {
    padding: 0;
}

.news-intro {
    text-align: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffeef3 0%, #f8e8ff 100%);
    margin-bottom: 1rem;
}

.news-intro p {
    margin: 0;
    color: #666;
    font-style: italic;
}

.news-list {
    padding: 0 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.news-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6b9d;
    transition: transform 0.2s ease;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.news-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.news-date {
    font-style: italic;
}

.news-source {
    font-weight: 600;
    color: #ff6b9d;
}

.news-link {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.news-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.news-footer {
    text-align: center;
    padding: 1rem 2rem 2rem;
    color: #999;
}

.news-footer em {
    font-size: 0.9rem;
}

/* Responsive design for comparison view */
@media (max-width: 768px) {
    .comparison-view-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-view-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .nikki-news-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}