/* Download Modal Styles */

/* Base modal styles */
.login-prompt,
.download-confirmation-modal,
.os-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Modal content containers */
.login-prompt-content,
.download-confirmation-modal .modal-content,
.os-selection-modal .modal-content {
    background: white;
    border-radius: 8px;
    margin: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.login-prompt-content {
    padding: 30px;
    text-align: center;
    max-width: 400px;
}

.download-confirmation-modal .modal-content {
    max-width: 600px;
}

.os-selection-modal .modal-content {
    max-width: 500px;
}

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

.modal-header h3 {
    margin: 0;
}

/* Modal body */
.modal-body {
    padding: 20px;
}

/* Close button */
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

/* Login prompt specific styles */
.login-prompt-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* OS info section */
.os-info {
    margin-bottom: 20px;
}

.os-info p {
    margin: 10px 0;
}

/* OS buttons container */
.os-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* OS selection grid */
.os-selection {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.os-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.os-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.os-btn i {
    font-size: 20px;
}

/* Installation notes */
.installation-notes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.installation-notes h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.installation-notes ul {
    margin: 0;
    padding-left: 20px;
}

.installation-notes li {
    margin-bottom: 5px;
}


/* Button styles - ensure consistency with existing theme */
.button__blue,
.button__orange,
.button__transparent {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.button__blue {
    background-color: #007bff;
    color: white;
}

.button__blue:hover {
    background-color: #0056b3;
}

.button__orange {
    background-color: #ff6b35;
    color: white;
    display: flex;
    margin-top: 40px;
    margin-bottom: 40px;
}

.button__orange:hover {
    background-color: #e55a2b;
}

.button__orange--gviewer {
    margin: 0;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}


.button__orange--main {
    margin: 0;
    margin-right: 15px;
    display: inline-block;
    padding: 7px 20px;
    font-size: 16px;
}

.button__transparent {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.button__transparent:hover {
    background-color: #007bff;
    color: white;
}

/* Loading state */
.button__blue:disabled,
.button__orange:disabled,
.button__transparent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-prompt-content,
    .download-confirmation-modal .modal-content,
    .os-selection-modal .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    .os-selection {
        flex-direction: column;
        align-items: center;
    }

    .os-btn {
        width: 200px;
        justify-content: center;
    }

    .os-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-prompt-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content,
.login-prompt-content {
    animation: modalFadeIn 0.3s ease-out;
}