/*
 * Custom styles for native HTML dialogs
 * Replaces jQuery UI dialog styling
 */

/* Base error dialog styling */
.error-dialog {
    border: none;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.error-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.error-dialog .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.error-dialog .dialog-header h3 {
    margin: 0;
    color: #c00;
}

.error-dialog .dialog-close-x {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
    line-height: 1;
}

.error-dialog .dialog-close-x:hover {
    color: #000;
}

.error-dialog .dialog-content {
    margin: 15px 0;
    line-height: 1.5;
}

.error-dialog .dialog-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Admin dialog base styling (used across admin views) */
.admin-dialog {
    border: none;
    border-radius: 8px;
    padding: 20px;
    max-width: 980px;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.admin-dialog-large {
    max-width: 890px;
    max-height: 90vh;
    width: 90vw;
    overflow: auto;
}

.admin-dialog-medium {
    max-width: 850px;
    max-height: 80vh;
    width: 85vw;
    overflow: auto;
}

.admin-dialog .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-dialog .dialog-header h2,
.admin-dialog .dialog-header h3 {
    margin: 0;
}

.admin-dialog .dialog-close-x {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
    line-height: 1;
}

.admin-dialog .dialog-close-x:hover {
    color: #000;
}

.admin-dialog .dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
