/* Modal Overlay - covers the entire screen */
.about-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

/* Modal Container */
.about-modal {
    background-color: white;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Consolas', monospace;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal Header */
.about-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f0f0f0;
}

.about-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: normal;
}

/* Modal Content */
.about-modal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.about-modal-content section {
    margin-bottom: 24px;
}

.about-modal-content h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
}

.about-modal-content p {
    margin: 0 0 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.about-modal-content strong {
    font-weight: bold;
}

.about-modal-content ul,
ol {
    padding-left: 20px;
    margin: 10px 0;
}

.about-modal-content li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Cluster Selection Styles */
.cluster-selection {
    margin-bottom: 24px;
}

.cluster-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cluster-option {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    font-family: 'Consolas', monospace;
    text-align: left;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Global Cluster - Black/White theme */
.cluster-option.global-cluster {
    background: white;
    border: 2px solid #ccc;
    color: black;
}

.cluster-option.global-cluster:hover {
    border-color: #000;
    background-color: #f0f0f0;
}

.cluster-option.global-cluster.selected {
    border-color: #000;
    background-color: #000;
    color: white;
}

/* USA Cluster - Red theme */
.cluster-option.usa-cluster {
    background: white;
    border: 2px solid #dc143c;
    color: #dc143c;
}

.cluster-option.usa-cluster:hover {
    border-color: #dc143c;
    background-color: #ffebee;
    color: #dc143c;
}

.cluster-option.usa-cluster.selected {
    border-color: #dc143c;
    background-color: #dc143c;
    color: white;
    font-weight: bold;
}

.cluster-option-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.cluster-option-summary {
    font-size: 12px;
    opacity: 0.8;
}

.cluster-description {
    background-color: #f8f8f8;
    padding: 10px 12px;
    border-left: 3px solid #2c3e50;
    font-size: 12px;
    line-height: 1.4;
}

/* Status indicator styles */
.status-indicator-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.about-status-indicator {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid #ccc;
}

.status-list li {
    list-style-type: none;
    padding-left: 0;
}

.status-list {
    padding-left: 0;
}

/* Modal Footer */
.about-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.code-block {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    margin: 10px 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

.about-button {
    padding: 8px 16px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: black !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-fill-color: black;
}

.about-button:hover,
.about-button:focus,
.about-button:active,
.about-button:visited {
    background-color: #e8e8e8;
    color: black;
    text-decoration: none;
}


/* Mobile optimizations */
@media (max-width: 768px) {
    .about-modal {
        max-width: 95%;
    }

    .about-modal-header h2 {
        font-size: 1rem;
    }

    .about-modal-content {
        padding: 16px;
    }

    .about-modal-content p,
    .about-modal-content li {
        font-size: 0.8rem;
    }

    .cluster-options {
        flex-direction: column;
        gap: 8px;
    }

    .cluster-option {
        padding: 10px;
    }

    .cluster-option-name {
        font-size: 12px;
    }

    .cluster-option-summary {
        font-size: 10px;
    }

    .cluster-description {
        font-size: 10px;
        padding: 8px 10px;
    }
}