/* Evidence Modal Styles */
.evidence-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.evidence-info {
    background: #f5f7fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

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

.info-value {
    color: #212121;
    font-weight: 500;
}

.info-value.status-verified {
    color: #4caf50;
}

.info-value.status-not-found {
    color: #f44336;
}

.info-value.status-partial-implementation {
    color: #ff9800;
}

.info-value.status-could-not-verify {
    color: #757575;
}

.evidence-description,
.evidence-screenshot,
.evidence-notes {
    margin-bottom: 2rem;
}

.evidence-description h4,
.evidence-screenshot h4,
.evidence-notes h4 {
    color: #0e4c8a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evidence-description p,
.evidence-notes p {
    line-height: 1.6;
    color: #424242;
}

.no-screenshot {
    background: #f5f7fa;
    padding: 3rem;
    text-align: center;
    border-radius: 12px;
    color: #757575;
}

.no-screenshot i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.modal-footer {
    background: #f5f7fa;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #1e88e5;
    color: white;
}

.btn-primary:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background: white;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #bdbdbd;
}

/* Clickable evidence indicators */
.check, .cross, .partial, [data-evidence] {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.check:hover, .cross:hover, .partial:hover, [data-evidence]:hover {
    transform: scale(1.1);
}

.check::after, .cross::after, .partial::after {
    content: "Click for evidence";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #424242;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.check:hover::after, .cross:hover::after, .partial:hover::after {
    opacity: 1;
}

/* Make table cells with evidence clickable */
td:has(.fa-check),
td:has(.fa-times),
td:has(.fa-minus),
td:has(.fa-question) {
    cursor: pointer;
}

td:has(.fa-check):hover,
td:has(.fa-times):hover,
td:has(.fa-minus):hover,
td:has(.fa-question):hover {
    background: rgba(30, 136, 229, 0.05);
}

/* Responsive styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}