/* Demo Modal Styles - IBM Design System */
.modal-overlay {
    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: 9999;
    padding: var(--spacing-04);
}

.modal-container {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-05);
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    font-size: var(--text-heading-03);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: var(--spacing-02);
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: var(--spacing-05);
}

.modal-description {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-05);
    line-height: 1.6;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-04);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-02);
}

.form-label {
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.form-input {
    padding: var(--spacing-03);
    border: 1px solid var(--color-border);
    background: var(--color-background);
    font-size: var(--text-body);
    color: var(--color-text-primary);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-02);
    cursor: pointer;
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: var(--spacing-03);
    justify-content: flex-end;
    padding-top: var(--spacing-03);
    border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        max-height: 100vh;
        height: 100vh;
        max-width: 100%;
    }
}