/* Popup Box (message) */
#popup-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    overscroll-behavior: contain;
    transition: all 0.3s ease;
}

#popup-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333;
    width: 40em;
    max-width: 90%;
    border-radius: 8px;
    padding-top: 30px;
    height: max-content;
    max-height: calc(100% - 80px);
    overflow-y: auto;
    display: block;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transition: all 0.25s ease;
}

#popup-title {
    padding: 0;
    margin-left: 24px;
    margin-right: 24px;
    font-size: 1.75em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

#popup-body {
    padding: 0;
    margin-left: 24px;
    margin-right: 24px;
    margin-bottom: 1.5em;
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

#popup-buttonbar {
    padding: 20px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Button */
#popup-buttonbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #dc2626;
    border: 2px solid #dc2626;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

#popup-buttonbar button:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

#popup-buttonbar button:active {
    transform: scale(0.98);
}

#popup-buttonbar button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

#popup-buttonbar button:disabled {
    background-color: #d1d5db;
    border-color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

#popup-buttonbar button img {
    height: 18px;
    margin-right: 8px;
}

/* Input */
#popup-edit {
    width: 100%;
    height: 40px;
    padding: 10px 12px;
    font-size: 1em;
    background-color: #f9fafb;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

#popup-edit:focus {
    background-color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Text Area */
#popup-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;
    background-color: #f9fafb;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    font-family: inherit;
}

#popup-textarea:focus {
    background-color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Select */
#popup-select {
    width: 100%;
    height: 40px;
    padding: 10px 12px;
    font-size: 1em;
    background-color: #f9fafb;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

#popup-select:focus {
    background-color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
