/**
 * Helios Simulator UX Fixes v2.0.1
 * Modal and refresh tip styling
 */

/* Modal overlay */
.helios-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal content box */
.helios-modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

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

/* Modal title */
.helios-modal-content h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* Modal description */
.helios-modal-content p {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

/* Name input field */
#helios-name-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

#helios-name-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Button container */
.helios-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Primary button (Download) */
.helios-btn-primary {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #27ae60;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helios-btn-primary:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.helios-btn-primary:active {
    transform: translateY(0);
}

/* Secondary button (Cancel) */
.helios-btn-secondary {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    background-color: #ecf0f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helios-btn-secondary:hover {
    background-color: #bdc3c7;
    transform: translateY(-2px);
}

.helios-btn-secondary:active {
    transform: translateY(0);
}

/* Refresh tip message */
.helios-refresh-tip {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999998;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.4s ease, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    .helios-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .helios-modal-content h2 {
        font-size: 20px;
    }
    
    .helios-modal-content p {
        font-size: 14px;
    }
    
    .helios-modal-buttons {
        flex-direction: column;
    }
    
    .helios-btn-primary,
    .helios-btn-secondary {
        width: 100%;
    }
    
    .helios-refresh-tip {
        font-size: 16px;
        padding: 15px 30px;
        width: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
