﻿/* Popup overlay and base styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 1100px;
    max-height: 90vh;
    padding: 20px;
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

    .popup-header h2 {
        margin: 0;
        font-size: 20px;
    }

.popup-close {
    cursor: pointer;
    font-size: 37px;
    color: #aaa;
    margin: -20px 0 0 0;
}

.popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 10px 10px
}

.popup-footer {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 10px;
}

/* Demo elements */
.popup-element {
    margin-bottom: 15px;
}

    .popup-element label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .popup-element input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

.form-actions {
    text-align: right;
    margin-top: 20px;
}

/* Size classes */
.popup-size-small .popup {
    width: 50%;
    max-width: 600px;
    font-size: 0.9rem;
}

.popup-size-medium .popup {
    /* Default styles already in .popup */
}

.popup-size-large .popup {
    width: 95%;
    max-width: none;
    height: 90%;
    margin: 1%;
    font-size: 0.8rem;
}
