/* Dialog Styles */

.dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.dialog {
    background: var(--win-bg);
    border: 2px solid;
    border-color: var(--win-highlight) var(--win-button-dark-shadow) var(--win-button-dark-shadow) var(--win-highlight);
    box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-shadow), 4px 4px 12px rgba(0,0,0,0.5);
    min-width: 280px;
    max-width: 500px;
}

.dialog-title-bar {
    background: var(--win-title-active);
    padding: 2px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    user-select: none;
}

.dialog-title {
    color: var(--win-title-text);
    font-weight: bold;
    font-size: 11px;
}

.dialog-body {
    padding: 16px;
    display: flex;
    gap: 16px;
}

.dialog-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.dialog-icon.error {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23c00' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M10 10l12 12M22 10l-12 12' stroke='white' stroke-width='3'/%3E%3C/svg%3E");
}

.dialog-icon.warning {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 2L2 28h28L16 2z' fill='%23ff0' stroke='%23000' stroke-width='2'/%3E%3Ctext x='16' y='24' text-anchor='middle' font-size='18' font-weight='bold'%3E!%3C/text%3E%3C/svg%3E");
}

.dialog-icon.info {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23008' stroke='%23000' stroke-width='2'/%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='18' font-weight='bold' fill='white'%3Ei%3C/text%3E%3C/svg%3E");
}

.dialog-icon.question {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23008' stroke='%23000' stroke-width='2'/%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='18' font-weight='bold' fill='white'%3E?%3C/text%3E%3C/svg%3E");
}

.dialog-content {
    flex: 1;
}

.dialog-message {
    margin-bottom: 8px;
    line-height: 1.4;
}

.dialog-input {
    width: 100%;
    margin-top: 8px;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px 16px;
}

.dialog-buttons button {
    min-width: 75px;
}

/* Input Dialog */
.dialog-input-field {
    margin-top: 12px;
}

.dialog-input-field label {
    display: block;
    margin-bottom: 4px;
}

.dialog-input-field input {
    width: 100%;
}

/* Progress Dialog */
.dialog-progress {
    margin-top: 12px;
}

.dialog-progress-bar {
    width: 100%;
    height: 20px;
    background: var(--win-white);
    border: 2px solid;
    border-color: var(--win-shadow) var(--win-highlight) var(--win-highlight) var(--win-shadow);
}

.dialog-progress-fill {
    height: 100%;
    background: var(--win-title-active);
    transition: width 0.2s;
}

.dialog-progress-text {
    text-align: center;
    margin-top: 4px;
    font-size: 11px;
}

/* List Dialog */
.dialog-list {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid;
    border-color: var(--win-shadow) var(--win-highlight) var(--win-highlight) var(--win-shadow);
    background: var(--win-white);
    margin-top: 8px;
}

.dialog-list-item {
    padding: 4px 8px;
    cursor: pointer;
}

.dialog-list-item:hover {
    background: var(--win-selection);
    color: var(--win-selection-text);
}

.dialog-list-item.selected {
    background: var(--win-selection);
    color: var(--win-selection-text);
}

/* Form Dialog */
.dialog-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.dialog-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dialog-form-row label {
    min-width: 80px;
    text-align: right;
}

.dialog-form-row input,
.dialog-form-row select,
.dialog-form-row textarea {
    flex: 1;
}
