/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    padding: 0;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FAFAFA;
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #191919;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5CDBD3;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #73D13D;
}

.modal-content {
    padding: 20px;
}

.modal-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item {
    padding: 15px;
    border-radius: 8px;
    background-color: #F4F4F4;
    margin-bottom: 10px;
    border-left: 3px solid #73D13D;
}

.project-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #191919;
}

.project-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Clickable metric card styles */
.metric-card.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.metric-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(92, 219, 211, 0.2);
    border: 1px solid #5CDBD3;
}

.metric-card.clickable::after {
    content: "ℹ";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    background-color: #5CDBD3;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
}
