/**
 * NetCDF / Excel export popup — shared across Project Overview, Bin Browsing,
 * Class Summary, and Classify. Button look matches Details / Add/Modify Project.
 */

.netcdf-export-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.netcdf-export-dialog {
    width: min(460px, 88vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
}

.netcdf-export-title {
    padding: 12px 18px 6px 18px;
    font-weight: 600;
    color: #333;
    font-size: 20px;
}

.netcdf-export-body {
    padding: 12px 18px 18px 18px;
}

.netcdf-export-intro {
    margin: 0 0 12px 0;
    color: #555;
    line-height: 1.4;
    font-size: 14px;
}

.netcdf-export-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #222;
    font-size: 14px;
}

.netcdf-export-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.netcdf-export-status {
    min-height: 18px;
    margin-bottom: 8px;
    color: #c62828;
    font-size: 13px;
}

.netcdf-export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    justify-content: center;
    align-items: center;
}

/* Same family as .details-button / .add-button */
.netcdf-export-btn {
    min-width: 120px;
    padding: 5px 12px;
    border: none;
    cursor: pointer;
    text-align: center;
    background-color: #5e5e5e;
    color: white;
    font-size: 14px;
    font-family: Arial, sans-serif;
    line-height: 1.25;
    white-space: nowrap;
    box-sizing: border-box;
}

.netcdf-export-btn:hover:not(:disabled) {
    background-color: #101010;
}

.netcdf-export-btn:disabled {
    background-color: #b0b0b0;
    color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.75;
}

.netcdf-export-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: 3050;
    display: none;
    align-items: center;
    justify-content: center;
}

.netcdf-export-loader-dialog {
    text-align: center;
    color: #555;
    padding: 24px 32px;
    font-family: Arial, sans-serif;
}

.netcdf-export-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px auto;
    border: 3px solid #d0d0d0;
    border-top-color: #666;
    border-radius: 50%;
    animation: netcdfExportSpin 0.7s linear infinite;
    display: block;
}

.netcdf-export-loader-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #333;
}

@keyframes netcdfExportSpin {
    to {
        transform: rotate(360deg);
    }
}
